Minor refactor across the board
This commit is contained in:
parent
dd0d264a27
commit
fbcb4e6973
7 changed files with 24 additions and 24 deletions
|
@ -54,6 +54,8 @@ If no viewers are found, `latex-preview-pane' is used.")
|
|||
(add-hook 'TeX-mode-hook #'visual-line-mode)
|
||||
;; Fold TeX macros
|
||||
(add-hook 'TeX-mode-hook #'TeX-fold-mode)
|
||||
;; Enable rainbow mode after applying styles to the buffer
|
||||
(add-hook 'TeX-mode-hook #'rainbow-delimiters-mode)
|
||||
;; display output of latex commands in popup
|
||||
(set-popup-rule! " output\\*$" :size 15)
|
||||
;; Do not prompt for Master files, this allows auto-insert to add templates to
|
||||
|
@ -63,10 +65,7 @@ If no viewers are found, `latex-preview-pane' is used.")
|
|||
(remove-hook 'find-file-hook
|
||||
(cl-find-if #'byte-code-function-p find-file-hook)
|
||||
'local))
|
||||
;; Enable rainbow mode after applying styles to the buffer
|
||||
(add-hook 'TeX-update-style-hook #'rainbow-delimiters-mode)
|
||||
(when (featurep! :tools flyspell)
|
||||
(add-hook 'latex-mode-local-vars-hook #'flyspell-mode))
|
||||
(add-hook 'latex-mode-local-vars-hook #'flyspell-mode!)
|
||||
;; All these excess pairs dramatically slow down typing in latex buffers, so
|
||||
;; we remove them. Let snippets do their job.
|
||||
(after! smartparens-latex
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue