My doom-emacs-config
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.

65 lines
2.7 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 "RinRi"
  7. user-mail-address "rin@rinri-d.xyz")
  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-palenight)
  24. (setq doom-font (font-spec :family "DejaVuSansMono Nerd Font Mono" :size 17)
  25. doom-variable-pitch-font (font-spec :family "DejaVuSansMono Nerd Font Mono" :size 17))
  26. ;; If you use `org' and don't want your org files in the default location below,
  27. ;; change `org-directory'. It must be set before org loads!
  28. (setq org-directory "~/org/")
  29. ;; This determines the style of line numbers in effect. If set to `nil', line
  30. ;; numbers are disabled. For relative line numbers, set this to `relative'.
  31. (setq display-line-numbers-type 'relative)
  32. ;; Here are some additional functions/macros that could help you configure Doom:
  33. ;;
  34. ;; - `load!' for loading external *.el files relative to this one
  35. ;; - `use-package!' for configuring packages
  36. ;; - `after!' for running code after a package has loaded
  37. ;; - `add-load-path!' for adding directories to the `load-path', relative to
  38. ;; this file. Emacs searches the `load-path' when you load packages with
  39. ;; `require' or `use-package'.
  40. ;; - `map!' for binding new keys
  41. ;;
  42. ;; To get information about any of these functions/macros, move the cursor over
  43. ;; the highlighted symbol at press 'K' (non-evil users must press 'C-c c k').
  44. ;; This will open documentation for it, including demos of how they are used.
  45. ;;
  46. ;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
  47. ;; they are implemented.
  48. ;; Auto pairing brackets
  49. (electric-pair-mode t)
  50. (remove-hook 'doom-first-buffer-hook #'smartparens-global-mode)
  51. (smartparens-global-mode -1)
  52. (defun set-newline-and-indent ()
  53. (define-key evil-insert-state-map (kbd "S-<return>") 'newline-and-indent))
  54. (add-hook 'c-mode-hook 'set-newline-and-indent)