Fix some hooks for doomemacs config
This commit is contained in:
parent
5902850bbd
commit
de0fade40f
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue