Emacs: reftex use :hook

This commit is contained in:
Marcel Kapfer 2018-02-23 09:59:25 +01:00
parent e5600ccebb
commit 349146ec26
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -1075,13 +1075,13 @@
;; TeX cross-reference management
(use-package reftex
:diminish reftex-mode
:init (add-hook 'LaTeX-mode-hook #'reftex-mode)
:config
(setq
;; Plug into AUCTeX
reftex-plug-into-AUCTeX t
;; 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
;; terminal in emacs