Move reftex/helm-bibtex config to extra-write
This commit is contained in:
parent
b85c3c1fde
commit
ee41bd88f3
2 changed files with 34 additions and 36 deletions
|
@ -86,6 +86,40 @@ functionality with buffer-local ones, which can be buggy in a minor-mode."
|
||||||
(visual-fill-column--adjust-window))))
|
(visual-fill-column--adjust-window))))
|
||||||
(apply fn window args))))
|
(apply fn window args))))
|
||||||
|
|
||||||
|
(use-package reftex
|
||||||
|
:commands turn-on-reftex
|
||||||
|
:init
|
||||||
|
(setq reftex-plug-into-AUCTeX t
|
||||||
|
reftex-ref-style-default-list '("Cleveref" "Hyperref" "Fancyref")
|
||||||
|
reftex-default-bibliography
|
||||||
|
`(,(expand-file-name "phys.bib" write-mode-biblio-dir)))
|
||||||
|
(add-hook! (LaTeX-mode latex-mode) 'turn-on-reftex))
|
||||||
|
|
||||||
|
(use-package helm-bibtex
|
||||||
|
:defer t
|
||||||
|
:init
|
||||||
|
(setq TeX-auto-save t
|
||||||
|
TeX-parse-self t
|
||||||
|
bibtex-dialect 'biblatex
|
||||||
|
bibtex-align-at-equal-sign t
|
||||||
|
bibtex-text-indentation 20)
|
||||||
|
(add-hook! bibtex-mode
|
||||||
|
(local-set-key (kbd "C-c \\") 'bibtex-fill-entry)
|
||||||
|
(setq fill-column 140))
|
||||||
|
(add-hook! (LaTeX-mode latex-mode) 'turn-on-auto-fill)
|
||||||
|
|
||||||
|
:config
|
||||||
|
(setq helm-bibtex-bibliography
|
||||||
|
`(,(expand-file-name "phys.bib" write-mode-biblio-dir))
|
||||||
|
|
||||||
|
helm-bibtex-library-path
|
||||||
|
`(,(expand-file-name "phys-pdf" write-mode-biblio-dir))
|
||||||
|
|
||||||
|
helm-bibtex-notes-path (expand-file-name "notes" write-mode-biblio-dir)
|
||||||
|
helm-bibtex-notes-extension ".org"
|
||||||
|
|
||||||
|
helm-bibtex-pdf-open-function
|
||||||
|
(lambda (fpath) (async-start-process "open-pdf" "/usr/bin/open" nil fpath))))
|
||||||
|
|
||||||
(provide 'extra-write)
|
(provide 'extra-write)
|
||||||
;;; extra-write.el ends here
|
;;; extra-write.el ends here
|
||||||
|
|
|
@ -31,41 +31,5 @@
|
||||||
|
|
||||||
(use-package markdown-toc :after markdown-mode)
|
(use-package markdown-toc :after markdown-mode)
|
||||||
|
|
||||||
(use-package reftex
|
|
||||||
:config
|
|
||||||
(add-hook 'latex-mode-hook 'turn-on-reftex)
|
|
||||||
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
|
|
||||||
(setq reftex-plug-into-AUCTeX t
|
|
||||||
reftex-ref-style-default-list '("Cleveref" "Hyperref" "Fancyref")
|
|
||||||
reftex-default-bibliography
|
|
||||||
`(,(expand-file-name "phys.bib" write-mode-biblio-dir))))
|
|
||||||
|
|
||||||
(use-package helm-bibtex
|
|
||||||
:defer t
|
|
||||||
:init
|
|
||||||
(setq TeX-auto-save t)
|
|
||||||
(setq TeX-parse-self t)
|
|
||||||
(setq bibtex-dialect 'biblatex)
|
|
||||||
(setq bibtex-align-at-equal-sign t)
|
|
||||||
(setq bibtex-text-indentation 20)
|
|
||||||
(add-hook! bibtex-mode
|
|
||||||
(local-set-key (kbd "C-c \\") 'bibtex-fill-entry)
|
|
||||||
(setq fill-column 140))
|
|
||||||
(add-hook! latex-mode 'turn-on-auto-fill)
|
|
||||||
(add-hook! LaTeX-mode 'turn-on-auto-fill)
|
|
||||||
|
|
||||||
:config
|
|
||||||
(setq helm-bibtex-bibliography
|
|
||||||
`(,(expand-file-name "phys.bib" write-mode-biblio-dir))
|
|
||||||
|
|
||||||
helm-bibtex-library-path
|
|
||||||
`(,(expand-file-name "phys-pdf" write-mode-biblio-dir))
|
|
||||||
|
|
||||||
helm-bibtex-notes-path (expand-file-name "notes" write-mode-biblio-dir)
|
|
||||||
helm-bibtex-notes-extension ".org"
|
|
||||||
|
|
||||||
helm-bibtex-pdf-open-function
|
|
||||||
(lambda (fpath) (async-start-process "open-pdf" "/usr/bin/open" nil fpath))))
|
|
||||||
|
|
||||||
(provide 'module-text)
|
(provide 'module-text)
|
||||||
;;; module-text.el ends here
|
;;; module-text.el ends here
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue