Merge branch 'latexRefactor' of https://github.com/patrl/doom-emacs into latexRefactor
This commit is contained in:
commit
189ff349cc
1 changed files with 2 additions and 15 deletions
|
@ -3,6 +3,8 @@
|
||||||
(def-package! reftex
|
(def-package! reftex
|
||||||
:hook (LaTeX-mode . reftex-mode)
|
:hook (LaTeX-mode . reftex-mode)
|
||||||
:config
|
:config
|
||||||
|
;; set up completion for citations and references
|
||||||
|
(set-company-backend! 'reftex-mode 'company-reftex-labels 'company-reftex-citations)
|
||||||
;; Get ReTeX working with biblatex
|
;; Get ReTeX working with biblatex
|
||||||
;; http://tex.stackexchange.com/questions/31966/setting-up-reftex-with-biblatex-citation-commands/31992#31992
|
;; http://tex.stackexchange.com/questions/31966/setting-up-reftex-with-biblatex-citation-commands/31992#31992
|
||||||
(setq reftex-cite-format
|
(setq reftex-cite-format
|
||||||
|
@ -28,13 +30,6 @@
|
||||||
:e "q" #'kill-buffer-and-window
|
:e "q" #'kill-buffer-and-window
|
||||||
:e "ESC" #'kill-buffer-and-window)))
|
:e "ESC" #'kill-buffer-and-window)))
|
||||||
|
|
||||||
;; set up completion for citations and references
|
|
||||||
(def-package! company-reftex
|
|
||||||
:when (featurep! :completion company)
|
|
||||||
:defer t
|
|
||||||
:init
|
|
||||||
(set-company-backend! 'reftex-mode 'company-reftex-labels 'company-reftex-citations))
|
|
||||||
|
|
||||||
;; set up mode for bib files
|
;; set up mode for bib files
|
||||||
(after! bibtex
|
(after! bibtex
|
||||||
(setq bibtex-dialect 'biblatex
|
(setq bibtex-dialect 'biblatex
|
||||||
|
@ -42,14 +37,6 @@
|
||||||
bibtex-text-indentation 20)
|
bibtex-text-indentation 20)
|
||||||
(define-key bibtex-mode-map (kbd "C-c \\") #'bibtex-fill-entry))
|
(define-key bibtex-mode-map (kbd "C-c \\") #'bibtex-fill-entry))
|
||||||
|
|
||||||
(def-package! ivy-bibtex
|
|
||||||
:when (featurep! :completion ivy)
|
|
||||||
:commands ivy-bibtex)
|
|
||||||
|
|
||||||
(def-package! helm-bibtex
|
|
||||||
:when (featurep! :completion helm)
|
|
||||||
:commands helm-bibtex)
|
|
||||||
|
|
||||||
(after! bibtex-completion
|
(after! bibtex-completion
|
||||||
(unless (string-empty-p +latex-bibtex-file)
|
(unless (string-empty-p +latex-bibtex-file)
|
||||||
(setq bibtex-completion-bibliography (list (expand-file-name +latex-bibtex-file)))))
|
(setq bibtex-completion-bibliography (list (expand-file-name +latex-bibtex-file)))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue