config.el 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. It is optional.
  6. ;; (setq user-full-name "John Doe"
  7. ;; user-mail-address "[email protected]")
  8. ;; Doom exposes five (optional) variables for controlling fonts in Doom:
  9. ;;
  10. ;; - `doom-font' -- the primary font to use
  11. ;; - `doom-variable-pitch-font' -- a non-monospace font (where applicable)
  12. ;; - `doom-big-font' -- used for `doom-big-font-mode'; use this for
  13. ;; presentations or streaming.
  14. ;; - `doom-symbol-font' -- for symbols
  15. ;; - `doom-serif-font' -- for the `fixed-pitch-serif' face
  16. ;;
  17. ;; See 'C-h v doom-font' for documentation and more examples of what they
  18. ;; accept. For example:
  19. ;;
  20. ;;(setq doom-font (font-spec :family "Fira Code" :size 12 :weight 'semi-light)
  21. ;; doom-variable-pitch-font (font-spec :family "Fira Sans" :size 13))
  22. ;;
  23. ;; If you or Emacs can't find your font, use 'M-x describe-font' to look them
  24. ;; up, `M-x eval-region' to execute elisp code, and 'M-x doom/reload-font' to
  25. ;; refresh your font settings. If Emacs still can't find your font, it likely
  26. ;; wasn't installed correctly. Font issues are rarely Doom issues!
  27. ;; There are two ways to load a theme. Both assume the theme is installed and
  28. ;; available. You can either set `doom-theme' or manually load a theme with the
  29. ;; `load-theme' function. This is the default:
  30. (setq doom-theme 'doom-one)
  31. ;; This determines the style of line numbers in effect. If set to `nil', line
  32. ;; numbers are disabled. For relative line numbers, set this to `relative'.
  33. (setq display-line-numbers-type t)
  34. ;; If you use `org' and don't want your org files in the default location below,
  35. ;; change `org-directory'. It must be set before org loads!
  36. (setq org-directory "~/org/")
  37. ;; Whenever you reconfigure a package, make sure to wrap your config in an
  38. ;; `after!' block, otherwise Doom's defaults may override your settings. E.g.
  39. ;;
  40. ;; (after! PACKAGE
  41. ;; (setq x y))
  42. ;;
  43. ;; The exceptions to this rule:
  44. ;;
  45. ;; - Setting file/directory variables (like `org-directory')
  46. ;; - Setting variables which explicitly tell you to set them before their
  47. ;; package is loaded (see 'C-h v VARIABLE' to look up their documentation).
  48. ;; - Setting doom variables (which start with 'doom-' or '+').
  49. ;;
  50. ;; Here are some additional functions/macros that will help you configure Doom.
  51. ;;
  52. ;; - `load!' for loading external *.el files relative to this one
  53. ;; - `use-package!' for configuring packages
  54. ;; - `after!' for running code after a package has loaded
  55. ;; - `add-load-path!' for adding directories to the `load-path', relative to
  56. ;; this file. Emacs searches the `load-path' when you load packages with
  57. ;; `require' or `use-package'.
  58. ;; - `map!' for binding new keys
  59. ;;
  60. ;; To get information about any of these functions/macros, move the cursor over
  61. ;; the highlighted symbol at press 'K' (non-evil users must press 'C-c c k').
  62. ;; This will open documentation for it, including demos of how they are used.
  63. ;; Alternatively, use `C-h o' to look up a symbol (functions, variables, faces,
  64. ;; etc).
  65. ;;
  66. ;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
  67. ;; they are implemented.