Waleed Yousef <wyou...@fcih.net> writes: > Hello, > > I have never been successful in configuring the reftex extra > key-bindings. This is my .emacs part: > > > (use-package reftex > :init > (setq reftex-extra-bindings t) ;;does not function well!! > (add-hook 'LaTeX-mode-hook 'turn-on-reftex) > (setq > reftex-auto-recenter-toc t > reftex-default-bibliography > '("~/MyDocuments/Phd/texmf/bibtex/bib/base/publications.bib" > "~/MyDocuments/Phd/texmf/bibtex/bib/base/booksIhave.bib") > reftex-bibpath-environment-variables (quote ("BIBINPUTS" "TEXBIB" > "~/MyDocuments/Phd/texmf/bibtex/bib/base/")) > reftex-cite-format (quote natbib) > reftex-label-alist (quote( > ("axiom" ?x "axm:" "~\\ref{%s}" t ("axiom") > -2) > ("theorem" ?h "thm:" "~\\ref{%s}" t ("theorem") > -3))) > reftex-insert-label-flags (quote ("sftxh" "nil")) > reftex-multiref-punctuation (quote ((44 . ", ") (45 . "--") (43 . ", and > "))) > reftex-plug-into-AUCTeX t > reftex-ref-style-default-list (quote ("Default" "Hyperref")) > reftex-sort-bibtex-matches (quote author) > reftex-toc-include-file-boundaries t > reftex-toc-split-windows-fraction 0.2 > reftex-toc-split-windows-horizontally t > ))
I don't use and know `use-package', but the following old fashioned way works for me: (setq reftex-extra-bindings t) (require 'reftex) (add-hook 'LaTeX-mode-hook #'turn-on-reftex) (setq reftex-plug-into-AUCTeX t) Note that setting `reftex-extra-bindings' happens before requiring RefTeX. Maybe you have a (require 'reftex) leftover in your .emacs before (use-package reftex ...)? Or :init doesn't work as expected? Best, Arash _______________________________________________ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex