Emacs: reftex use :hook
This commit is contained in:
parent
e5600ccebb
commit
349146ec26
1 changed files with 2 additions and 2 deletions
|
@ -1075,13 +1075,13 @@
|
||||||
;; TeX cross-reference management
|
;; TeX cross-reference management
|
||||||
(use-package reftex
|
(use-package reftex
|
||||||
:diminish reftex-mode
|
:diminish reftex-mode
|
||||||
:init (add-hook 'LaTeX-mode-hook #'reftex-mode)
|
|
||||||
:config
|
:config
|
||||||
(setq
|
(setq
|
||||||
;; Plug into AUCTeX
|
;; Plug into AUCTeX
|
||||||
reftex-plug-into-AUCTeX t
|
reftex-plug-into-AUCTeX t
|
||||||
;; Automatically derive labels, and prompt for confirmation
|
;; Automatically derive labels, and prompt for confirmation
|
||||||
reftex-insert-label-flags '(t t)))
|
reftex-insert-label-flags '(t t))
|
||||||
|
:hook (LaTeX-mode-hook . reftex-mode))
|
||||||
|
|
||||||
;; term / ansi-term
|
;; term / ansi-term
|
||||||
;; terminal in emacs
|
;; terminal in emacs
|
||||||
|
|
Loading…
Reference in a new issue