Implement @hlissner's suggestions
This commit is contained in:
parent
581536396f
commit
c5fd541773
3 changed files with 5 additions and 11 deletions
|
@ -2,7 +2,6 @@
|
||||||
;;;###if (featurep! +latexmk)
|
;;;###if (featurep! +latexmk)
|
||||||
|
|
||||||
(def-package! auctex-latexmk
|
(def-package! auctex-latexmk
|
||||||
:defer t
|
|
||||||
:after latex
|
:after latex
|
||||||
:init
|
:init
|
||||||
;; Pass the -pdf flag when TeX-PDF-mode is active
|
;; Pass the -pdf flag when TeX-PDF-mode is active
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
;;; lang/latex/+ref.el -*- lexical-binding: t; -*-
|
;;; lang/latex/+ref.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
(def-package! reftex
|
(def-package! reftex
|
||||||
:defer t
|
|
||||||
:hook (LaTeX-mode . reftex-mode)
|
:hook (LaTeX-mode . reftex-mode)
|
||||||
:config
|
:config
|
||||||
;; Get ReTeX working with biblatex
|
;; Get ReTeX working with biblatex
|
||||||
|
@ -36,8 +35,7 @@
|
||||||
(set-company-backend! 'reftex-mode 'company-reftex-labels 'company-reftex-citations))
|
(set-company-backend! 'reftex-mode 'company-reftex-labels 'company-reftex-citations))
|
||||||
|
|
||||||
;; set up mode for bib files
|
;; set up mode for bib files
|
||||||
(def-package! bibtex
|
(after! bibtex
|
||||||
:config
|
|
||||||
(setq bibtex-dialect 'biblatex
|
(setq bibtex-dialect 'biblatex
|
||||||
bibtex-align-at-equal-sign t
|
bibtex-align-at-equal-sign t
|
||||||
bibtex-text-indentation 20)
|
bibtex-text-indentation 20)
|
||||||
|
|
|
@ -37,8 +37,7 @@
|
||||||
;; set-up chktex
|
;; set-up chktex
|
||||||
(setcar (cdr (assoc "Check" TeX-command-list)) "chktex -v6 -H %s")
|
(setcar (cdr (assoc "Check" TeX-command-list)) "chktex -v6 -H %s")
|
||||||
;; tell emacs how to parse tex files
|
;; tell emacs how to parse tex files
|
||||||
(add-hook! 'tex-mode-hook
|
(add-hook! 'tex-mode-hook (setq ispell-parser 'tex))
|
||||||
(lambda () (setq ispell-parser 'tex)))
|
|
||||||
;; display output of latex commands in popup
|
;; display output of latex commands in popup
|
||||||
(set-popup-rule! " output\\*$" :size 15)
|
(set-popup-rule! " output\\*$" :size 15)
|
||||||
;; Do not prompt for Master files, this allows auto-insert to add templates to
|
;; Do not prompt for Master files, this allows auto-insert to add templates to
|
||||||
|
@ -47,7 +46,8 @@
|
||||||
(cl-find-if #'byte-code-function-p find-file-hook)
|
(cl-find-if #'byte-code-function-p find-file-hook)
|
||||||
'local))
|
'local))
|
||||||
;; Enable rainbow mode after applying styles to the buffer
|
;; Enable rainbow mode after applying styles to the buffer
|
||||||
(add-hook! 'TeX-update-style-hook #'rainbow-delimiters-mode)
|
(add-hook 'TeX-update-style-hook #'rainbow-delimiters-mode)
|
||||||
|
(add-hook 'TeX-mode-hook #'visual-line-mode)
|
||||||
(when (featurep! :feature spellcheck)
|
(when (featurep! :feature spellcheck)
|
||||||
(add-hook 'TeX-mode-hook #'flyspell-mode :append)))
|
(add-hook 'TeX-mode-hook #'flyspell-mode :append)))
|
||||||
|
|
||||||
|
@ -55,9 +55,7 @@
|
||||||
(def-package! tex-fold
|
(def-package! tex-fold
|
||||||
:hook (TeX-mode . TeX-fold-mode))
|
:hook (TeX-mode . TeX-fold-mode))
|
||||||
|
|
||||||
(def-package! latex
|
(after! latex
|
||||||
:defer t
|
|
||||||
:config
|
|
||||||
(setq LaTeX-section-hook ; Add the toc entry to the sectioning hooks.
|
(setq LaTeX-section-hook ; Add the toc entry to the sectioning hooks.
|
||||||
'(LaTeX-section-heading
|
'(LaTeX-section-heading
|
||||||
LaTeX-section-title
|
LaTeX-section-title
|
||||||
|
@ -72,7 +70,6 @@
|
||||||
|
|
||||||
;; set-up preview package
|
;; set-up preview package
|
||||||
(def-package! preview
|
(def-package! preview
|
||||||
:defer t
|
|
||||||
:hook (LaTeX-mode . LaTeX-preview-setup)
|
:hook (LaTeX-mode . LaTeX-preview-setup)
|
||||||
:config
|
:config
|
||||||
(setq-default preview-scale 1.4
|
(setq-default preview-scale 1.4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue