
Я пытаюсь настроить установку spacemacs для использования с reftex. На самом деле, я хочу изменить автоматические метки уравнения и т. д., чтобы они включали имя файла в метку. Конец моего .spacemacs следующий
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
[snip]
'(reftex-extra-bindings t)
'(reftex-use-external-file-finders t)
'(reftex-label-alist
(quote
(("multline" 109 "eq_%f:" "~\\ref{%s}" t ("Equation"))
("equation" 122 "eq_%f:" "~\\eqref{%s}" t ("Equation")))))
'(reftex-plug-into-AUCTeX t)
'(ring-bell-function (quote ignore)))
Тот же самый код под emacs работает как по волшебству. В spacemacs я не могу получить автоматическую нумерацию и даже префикс с именем файла.
Есть идеи ?
решение1
Как упомянул Арах, достаточно изменить номер строки 158 ./.emacs.d/layers/+lang/latex/packages.el
с
(setq reftex-plug-into-AUCTeX '(nil nil t t t))
к
(setq reftex-plug-into-AUCTeX t)