I want to activate reftex-isearch-minor-mode
and tried the solution in this post offered by giordano,
(add-hook 'TeX-mode-hook (lambda () (reftex-isearch-minor-mode))) ; for AUCTeX
it works when I first open .tex
file on emacs, but the minor mode will be lost, and the multi-search mode becomes the usual search mode after either C-c C-n or revert buffer.
How can I keep the reftex-isearch-minor-mode
when I do the refreshing? Many thanks!
My AUCTeX version is 11.90.2, emacs version is 24.5.2
reftex-isearch-minor-mode
? I.e.,(add-hook 'TeX-mode-hook (lambda () (reftex-isearch-minor-mode 1)))
. – Arash Esbati Dec 03 '17 at 21:33M-x reftex-isearch-minor-mode RET
. I probably should not be asking this, but what is the minimum amount of code in the.emacs
to make it work? I have tried this line alone, and with(setq TeX-parse-self t)
, and a lot other variants... – davyjones Dec 03 '17 at 22:44(add-hook 'LaTeX-mode-hook (lambda () (reftex-isearch-minor-mode)))
does work (with TeX-LaTeX), at least so far... but I have to put it before(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
. Does this make sense? – davyjones Dec 03 '17 at 23:03