From c27bf7a0dccda439982be6266738f47e7c5b8a91 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 12 Dec 2016 16:53:20 +0800 Subject: _spacemacs: Enable and configure "bibtex" layer --- _spacemacs.d/init.el | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '_spacemacs.d/init.el') diff --git a/_spacemacs.d/init.el b/_spacemacs.d/init.el index 4de629a..3425a26 100644 --- a/_spacemacs.d/init.el +++ b/_spacemacs.d/init.el @@ -75,6 +75,7 @@ auto-completion-private-snippets-directory "~/.spacemacs.d/snippets/") ;; better-defaults + bibtex c-c++ (chinese :variables chinese-enable-fcitx t) (clojure :variables clojure-enable-fancify-symbols t) @@ -457,6 +458,14 @@ ;; Set monospaced font size for Chinese (from `chinese' layer) (spacemacs//set-monospaced-font "M+ 1mn" "WenQuanYi Zen Hei" 14 14) ;; + ;; Configure the BibTeX file for `org-ref' from `bibtex' layer + (setq org-ref-default-bibliography '("~/papers/references.bib") + org-ref-pdf-directory "~/papers/" + org-ref-bibliography-notes "~/papers/notes.org") + (setq org-ref-open-pdf-function + (lambda (fpath) + (start-process "xdg-open" "*helm-bibtex-open*" "xdg-open" fpath))) + ;; ;; ESS: Turn off the automatic replacement of `_' by `<-' (add-hook 'ess-mode-hook (lambda () (ess-toggle-underscore nil))) ;; -- cgit v1.2.2