My personal configuration files for Doom emacs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
3.6 KiB

  1. ;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
  2. ;; Place your private configuration here! Remember, you do not need to run 'doom
  3. ;; sync' after modifying this file!
  4. ;; Some functionality uses this to identify you, e.g. GPG configuration, email
  5. ;; clients, file templates and snippets.
  6. (setq user-full-name "Levi Olson"
  7. user-mail-address "olson.levi@gmail.com")
  8. ;; Doom exposes five (optional) variables for controlling fonts in Doom. Here
  9. ;; are the three important ones:
  10. ;;
  11. ;; + `doom-font'
  12. ;; + `doom-variable-pitch-font'
  13. ;; + `doom-big-font' -- used for `doom-big-font-mode'; use this for
  14. ;; presentations or streaming.
  15. ;;
  16. ;; They all accept either a font-spec, font string ("Input Mono-12"), or xlfd
  17. ;; font string. You generally only need these two:
  18. ;; (setq doom-font (font-spec :family "monospace" :size 12 :weight 'semi-light)
  19. ;; doom-variable-pitch-font (font-spec :family "sans" :size 13))
  20. ;; There are two ways to load a theme. Both assume the theme is installed and
  21. ;; available. You can either set `doom-theme' or manually load a theme with the
  22. ;; `load-theme' function. This is the default:
  23. (setq doom-theme 'doom-one)
  24. ;; If you use `org' and don't want your org files in the default location below,
  25. ;; change `org-directory'. It must be set before org loads!
  26. (setq org-directory "/mnt/c/Users/Levi/Nextcloud/Org/")
  27. ;; This determines the style of line numbers in effect. If set to `nil', line
  28. ;; numbers are disabled. For relative line numbers, set this to `relative'.
  29. (setq display-line-numbers-type t)
  30. (cond ((member "PragmataPro Liga" (font-family-list))
  31. (set-face-attribute 'default nil :font "PragmataPro Liga-15")))
  32. (if (eq system-type 'gnu/linux)
  33. (progn
  34. (add-to-list 'default-frame-alist '(top . 400))
  35. (add-to-list 'default-frame-alist '(left . 750))
  36. (add-to-list 'default-frame-alist '(height . 60))
  37. (add-to-list 'default-frame-alist '(width . 235))
  38. ))
  39. ;; Here are some additional functions/macros that could help you configure Doom:
  40. ;;
  41. ;; - `load!' for loading external *.el files relative to this one
  42. ;; - `use-package!' for configuring packages
  43. ;; - `after!' for running code after a package has loaded
  44. ;; - `add-load-path!' for adding directories to the `load-path', relative to
  45. ;; this file. Emacs searches the `load-path' when you load packages with
  46. ;; `require' or `use-package'.
  47. ;; - `map!' for binding new keys
  48. ;;
  49. ;; To get information about any of these functions/macros, move the cursor over
  50. ;; the highlighted symbol at press 'K' (non-evil users must press 'C-c c k').
  51. ;; This will open documentation for it, including demos of how they are used.
  52. ;;
  53. ;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
  54. ;; they are implemented.
  55. (if (file-exists-p "~/.doom.d/functions.el")
  56. (progn
  57. (load-file "~/.doom.d/functions.el")
  58. (require 'functions))
  59. (message "\"~/.doom.d/functions.el\" does not exist" ))
  60. (map! :map global-map
  61. "M-t" 'treemacs-select-window
  62. "M-q" 'leo/kill-this-buffer-unless-scratch
  63. "C-<tab>" 'leo/tidy
  64. "C-;" 'leo/comment-or-uncomment-region-or-line
  65. "C-c C-e" 'leo/edit-config
  66. "C-c d" 'leo/duplicate-thing
  67. "M-n" 'leo/jump-to-next-symbol
  68. "M-p" 'leo/jump-to-prev-symbol
  69. "M-u" 'upcase-dwim
  70. "M-c" 'capitalize-dwim
  71. "M-l" 'downcase-dwim
  72. "C-c b" 'ivy-switch-buffer
  73. "C-s" 'swiper
  74. "C-}" 'mc/mark-next-like-this
  75. "C-)" 'mc/unmark-next-like-this
  76. "C-{" 'mc/mark-previous-like-this
  77. "C-(" 'mc/unmark-previous-like-this
  78. "C-@" 'er/expand-region
  79. "C-#" 'er/contract-region
  80. )