diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-12-12 16:53:20 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-12-12 16:53:20 +0800 |
commit | c27bf7a0dccda439982be6266738f47e7c5b8a91 (patch) | |
tree | 6d1ef3b58691dcdc9523c0e93a3eb3d1c4bdca44 /_spacemacs.d/init.el | |
parent | 23372f5a51ec48030bab275daa2bd0238cfa6b7b (diff) | |
download | dotfiles-c27bf7a0dccda439982be6266738f47e7c5b8a91.tar.bz2 |
_spacemacs: Enable and configure "bibtex" layer
Diffstat (limited to '_spacemacs.d/init.el')
-rw-r--r-- | _spacemacs.d/init.el | 9 |
1 files changed, 9 insertions, 0 deletions
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))) ;; |