From de0fade40fe4849b2f2cd0a06e9a3a950655b0d1 Mon Sep 17 00:00:00 2001 From: Leni Ven Date: Sun, 5 Feb 2023 01:13:53 -0800 Subject: [PATCH] Fix some hooks for doomemacs config --- home/doomemacs/config.el | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/home/doomemacs/config.el b/home/doomemacs/config.el index 439c82f..cdbf07d 100644 --- a/home/doomemacs/config.el +++ b/home/doomemacs/config.el @@ -33,7 +33,7 @@ (after! org (map! :localleader (:map org-mode-map - "X" #'org-toggle-latex-fragment) + "X" #'org-latex-preview) )) (setq @@ -133,7 +133,7 @@ ) (defun custom/common-richtext-hook () (setq whitespace-style '(face spaces tabs newline trailing space-mark tab-mark newline-mark)) - (setq whitespace-line-column 'nil) + (setq whitespace-line-column nil) ) (defun custom/lisp-family-hook () (custom/common-program-hook) @@ -149,6 +149,7 @@ (use-package! smart-tabs-mode :config + (print! "Configuring smart-tabs-mode") (smart-tabs-insinuate 'c 'c++ 'java @@ -164,18 +165,28 @@ (after! format + (print! "Configuring (after! format ...)") '(not emacs-lisp-mode sql-mode tex-mode latex-mode)) -(after! spell - (setq ispell-dictionary "english")) +(after! flyspell + (print! "Configuring (after! flyspell ...)") + (setq flyspell-default-dictionary "english")) +(after! lsp-mode + (print! "Configuring (after! lsp-mode ...)") + (setq + lsp-headerline-breadcrumb-enable t + lsp-headerline-breadcrumb-enable-symbol-numbers nil + lsp-headerline-breadcrumb-segments '(symbols) + )) (use-package! lilypond-mode :init + (print! "Initializing lilypond-mode") (add-to-list 'auto-mode-alist '("\\.ly\\'" . LilyPond-mode)) :config (add-hook 'LilyPond-mode-hook #'custom/common-program-hook) @@ -183,9 +194,11 @@ ;; LaTeX (after! latex + (print! "Configuring (after! latex ...)") (add-hook 'tex-mode-hook #'custom/common-program-hook) (add-hook 'LaTeX-mode-hook #'custom/common-program-hook) - (setq-default TeX-electric-sub-and-superscript nil)) + (setq-default TeX-electric-sub-and-superscript nil) + ) ;; Whenever you reconfigure a package, make sure to wrap your config in an ;; `after!' block, otherwise Doom's defaults may override your settings. E.g.