Fix some hooks for doomemacs config
This commit is contained in:
parent
5902850bbd
commit
de0fade40f
|
@ -33,7 +33,7 @@
|
||||||
(after! org
|
(after! org
|
||||||
(map! :localleader
|
(map! :localleader
|
||||||
(:map org-mode-map
|
(:map org-mode-map
|
||||||
"X" #'org-toggle-latex-fragment)
|
"X" #'org-latex-preview)
|
||||||
))
|
))
|
||||||
|
|
||||||
(setq
|
(setq
|
||||||
|
@ -133,7 +133,7 @@
|
||||||
)
|
)
|
||||||
(defun custom/common-richtext-hook ()
|
(defun custom/common-richtext-hook ()
|
||||||
(setq whitespace-style '(face spaces tabs newline trailing space-mark tab-mark newline-mark))
|
(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 ()
|
(defun custom/lisp-family-hook ()
|
||||||
(custom/common-program-hook)
|
(custom/common-program-hook)
|
||||||
|
@ -149,6 +149,7 @@
|
||||||
|
|
||||||
(use-package! smart-tabs-mode
|
(use-package! smart-tabs-mode
|
||||||
:config
|
:config
|
||||||
|
(print! "Configuring smart-tabs-mode")
|
||||||
(smart-tabs-insinuate
|
(smart-tabs-insinuate
|
||||||
'c 'c++
|
'c 'c++
|
||||||
'java
|
'java
|
||||||
|
@ -164,18 +165,28 @@
|
||||||
|
|
||||||
|
|
||||||
(after! format
|
(after! format
|
||||||
|
(print! "Configuring (after! format ...)")
|
||||||
'(not
|
'(not
|
||||||
emacs-lisp-mode
|
emacs-lisp-mode
|
||||||
sql-mode
|
sql-mode
|
||||||
tex-mode
|
tex-mode
|
||||||
latex-mode))
|
latex-mode))
|
||||||
|
|
||||||
(after! spell
|
(after! flyspell
|
||||||
(setq ispell-dictionary "english"))
|
(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
|
(use-package! lilypond-mode
|
||||||
:init
|
:init
|
||||||
|
(print! "Initializing lilypond-mode")
|
||||||
(add-to-list 'auto-mode-alist '("\\.ly\\'" . LilyPond-mode))
|
(add-to-list 'auto-mode-alist '("\\.ly\\'" . LilyPond-mode))
|
||||||
:config
|
:config
|
||||||
(add-hook 'LilyPond-mode-hook #'custom/common-program-hook)
|
(add-hook 'LilyPond-mode-hook #'custom/common-program-hook)
|
||||||
|
@ -183,9 +194,11 @@
|
||||||
|
|
||||||
;; LaTeX
|
;; LaTeX
|
||||||
(after! latex
|
(after! latex
|
||||||
|
(print! "Configuring (after! latex ...)")
|
||||||
(add-hook 'tex-mode-hook #'custom/common-program-hook)
|
(add-hook 'tex-mode-hook #'custom/common-program-hook)
|
||||||
(add-hook 'LaTeX-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
|
;; 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.
|
;; `after!' block, otherwise Doom's defaults may override your settings. E.g.
|
||||||
|
|
Loading…
Reference in New Issue