doom

My literate doom emacs config
git clone https://github.com/michaelneuper/doom.git
Files | Log | Refs

commit ca273c749cf4c7d00a24be52006b3d4b62715555
parent ffec70354eb5d1172a846c1249d5112dfc60ed4e
Author: Michael Neuper <michael@michaelneuper.com>
Date:   Mon,  1 Sep 2025 22:25:05 +0200

minor changes

- change escape code colors
- don't preview current corfu candidate
- enable `rainbow-delimiters-mode` is ts modes
- auto install tree-sitter grammars
- don't enable deprecated `org-latex-preview-auto-mode`

Diffstat:
Mconfig.org | 35++++++++++++++++++++---------------
1 file changed, 20 insertions(+), 15 deletions(-)

diff --git a/config.org b/config.org @@ -121,6 +121,12 @@ The fonts need to be installed on your machine and make sure to run ~M-x nerd-ic doom-variable-pitch-font (font-spec :family my/serif-font) doom-emoji-font (font-spec :family "Apple Color Emoji")) #+end_src + +Make escape characters like =\n= orange when the =gruvbox= theme is used like in neovim. +#+begin_src emacs-lisp +(custom-theme-set-faces! 'doom-gruvbox + `(font-lock-escape-face :foreground ,(doom-color 'orange))) +#+end_src *** Lines Enable relative line numbers and make their slant normal (not italic). #+begin_src emacs-lisp @@ -140,12 +146,6 @@ Only highlight the current line in programming modes and =dired=. #+begin_src emacs-lisp (setq global-hl-line-modes '(prog-mode dired-mode)) #+end_src - -Display a fill indicator at 80 characters in =prog-mode=. -#+begin_src emacs-lisp -;; (setq display-fill-column-indicator-column 80) -;; (add-hook 'prog-mode-hook #'display-fill-column-indicator-mode) -#+end_src *** Window Start emacs in a 100x40 window. #+begin_src emacs-lisp @@ -180,7 +180,7 @@ Disable corfu's auto-popups and preselect the first candidate. (after! corfu (setq corfu-auto nil corfu-preselect 'first - corfu-preview-current 'insert + corfu-preview-current nil +corfu-want-tab-prefer-expand-snippets t)) #+end_src ** :ui @@ -226,7 +226,7 @@ Also disable [[modeline]] and cursor. "A list of messages, one of which dashboard chooses to display.") (add-hook! '+doom-dashboard-functions :append - (let* ((icon (propertize #(" " 0 1 (display (height 1.5))) 'face `(:foreground ,(doom-color 'grey)))) + (let* ((icon (propertize #(" " 0 1 (display (height 1.5))) 'face `(:foreground ,(doom-color 'grey)))) (msg (nth (random (length my/dashboard-footer-messages)) my/dashboard-footer-messages)) (line (concat icon msg))) @@ -456,7 +456,8 @@ Add padding to emacs frames and windows with [[https://github.com/protesilaos/sp Make rainbow delimiters toggleable. #+begin_src emacs-lisp (add-hook! '(emacs-lisp-mode-hook - c-mode-hook) + c-mode-hook c-ts-mode-hook + java-mode-hook java-ts-mode-hook) #'rainbow-delimiters-mode) ;; https://github.com/orgs/doomemacs/projects/5/views/1?pane=issue&itemId=117610828 @@ -805,9 +806,12 @@ let's change this to a nerd font light bulb instead. `(eglot-inlay-hint-face :foreground ,(doom-color 'base5) :height 0.9 - :family ,my/sans-serif-font))) -#+end_src + :family ,my/sans-serif-font)) + (map! :map eglot-mode-map + :leader + :prefix "t" + :desc "Toggle inlay hints" "h" #'eglot-inlay-hints-mode)) #+end_src *** pdf Automatically enable dark mode in pdfs. @@ -844,6 +848,11 @@ Create some keybindings for commonly used commands. :desc "Highlight" "h" #'pdf-annot-add-highlight-markup-annotation :desc "Strikeout" "s" #'pdf-annot-add-strikeout-markup-annotation)) #+end_src +*** tree-sitter +#+begin_src emacs-lisp +(after! treesit + (setq treesit-auto-install-grammar 'always)) +#+end_src ** :lang *** cc Configure =cc-mode=. @@ -1080,7 +1089,6 @@ Set up =LaTeX= previews in =org= buffers. ;; modified from https://abode.karthinks.com/org-latex-preview/ (use-package! org-latex-preview :after org - :hook (org-mode . org-latex-preview-auto-mode) :init (setq org-startup-with-latex-preview t) @@ -1356,9 +1364,6 @@ Set up =org-roam= along with keybindings that have the [[kbd:][<leader> r]] pref #+end_src Integrate with the mac calendar. -There is currently a bug in the code, until my PR is merged, -the following patch has to be applied: -https://github.com/haji-ali/maccalfw/pull/4/commits/fcbc3f30b919bc6a21e33d99a407e92758527db3 #+begin_src emacs-lisp (use-package! maccalfw :if (featurep :system 'macos)