diff --git a/README.org b/README.org index d50902a..2036b13 100644 --- a/README.org +++ b/README.org @@ -165,7 +165,8 @@ not load the ~custom-file~ as [[info:emacs#Saving Customizations][saving customi '(after-save-hook #'executable-make-buffer-file-executable-if-script-p) '(column-number-mode t) '(cursor-type 'box) - `(custom-file ,(make-temp-file "emacs-custom-")) + ;; `(custom-file ,(make-temp-file "emacs-custom-")) + `(custom-file ,(locate-user-emacs-file "custom.el")) '(epg-pinentry-mode 'loopback) '(global-hl-line-mode t) '(global-hl-line-sticky-flag t) @@ -696,7 +697,6 @@ below corrects this by advising to override ~TeX-brace-count-line~ with (shell . t))) '(org-cite-export-processors '((latex biblatex) (t csl))) - '(org-cite-global-bibliography '("~/VCS/research/refs.bib")) '(org-file-apps '((auto-mode . emacs) (directory . emacs) ("\\.mm\\'" . default) @@ -718,17 +718,17 @@ below corrects this by advising to override ~TeX-brace-count-line~ with org-tempo)) '(org-src-fontify-natively t) '(org-structure-template-alist - '(("a" . "export ascii") - ("c" . "center") - ("C" . "comment") - ("e" . "example") - ("E" . "export") - ("h" . "export html") - ("l" . "export latex") - ("q" . "quote") - ("s" . "src") - ("p" . "src python :session :async") - ("v" . "verse")))) + '(("a" . "export ascii") + ("c" . "center") + ("C" . "comment") + ("e" . "example") + ("E" . "export") + ("h" . "export html") + ("l" . "export latex") + ("q" . "quote") + ("s" . "src") + ("p" . "src python :session :async") + ("v" . "verse")))) #+end_src *** [[info:org#External Links][Export external links (info)]] @@ -1006,10 +1006,13 @@ Stolen from [[https://git.sr.ht/~bzg/org-contrib/tree/master/item/lisp/ox-extra. #+begin_src emacs-lisp (with-eval-after-load 'oc - (custom-set-variables - '(citar-bibliography '("~/VCS/research/refs.bib"))) (require 'oc-biblatex) - (require 'oc-csl)) + (require 'oc-csl) + (custom-set-variables + '(org-cite-activate-processor 'citar) + '(org-cite-follow-processor 'citar) + '(org-cite-global-bibliography '("~/VCS/research/refs.bib")) + '(org-cite-insert-processor 'citar))) #+end_src *** [[https://github.com/bdarcus/citar][Citar: citing bibliography]] @@ -1026,25 +1029,21 @@ filtering and selecting of bibliographic entries from the minibuffer, and the option to run different commands on those selections. #+begin_src emacs-lisp - (when (cl-every #'fboundp '(citar-insert-citation - citar-insert-preset - citar-org-activate - citar-org-follow - citar-org-insert)) - (custom-set-variables - '(org-cite-activate-processor 'citar) - '(org-cite-follow-processor 'citar) - '(org-cite-insert-processor 'citar) - `(citar-bibliography ,org-cite-global-bibliography)) - (global-set-key (kbd "C-c b") #'citar-insert-citation) - (define-key minibuffer-local-map (kbd "M-b") #'citar-insert-preset)) + (with-eval-after-load 'org + (when (require 'citar nil 'noerror) + (custom-set-variables + '(citar-bibliography '("~/VCS/research/refs.bib")) + '(citar-file-extensions '("djvu" "pdf")) + '(citar-library-paths '("~/VCS/research/papers/")))) + (define-key org-mode-map (kbd "C-c b") 'org-cite-insert)) #+end_src -**** TODO Compare bibtex and biblatex +*** TODO Compare bibtex and biblatex 1. [[https://www.economics.utoronto.ca/osborne/latex/BIBTEX.HTM][Using bibtex: a short guide]] 2. [[https://www.tug.org/texlive//devsrc/Master/texmf-dist/doc/latex/biblatex/biblatex.pdf][The biblatex package]] 3. [[https://github.com/yuchenlin/rebiber][Rebiber: A tool for normalizing bibtex with official info]] 4. [[https://github.com/josephwright/biblatex-phys][A biblatex implementation of the AIP and APS bibliography style]] + * Editing ** [[https://www.emacswiki.org/emacs/DisabledCommands][Enable disabled commands and inform]]