summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emacs/init.el44
1 files changed, 42 insertions, 2 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 93fdb10..a9adf81 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -765,9 +765,49 @@ The misspelled word is taken from OVERLAY. WORD is the corrected word."
(ebib-notes-show-note-method 'all)
(ebib-notes-file-extension "md")
(ebib-notes-template "# %T\n\n%%?")
- )
+ (ebib-file-associations '(("pdf" . "xdg-open") ("ps" . "gv"))))
-;; https://juanjose.garciaripoll.com/blog/managing-bibliographies-from-emacs/index.html
+(use-package citar
+ :ensure t
+ :custom
+ (citar-bibliography '("~/Documents/Library/References.bib"))
+ (citar-library-paths '("~/Documents/Library/Papers")))
+
+(use-package bibtex
+ :custom
+ (bibtex-dialect 'biblatex)
+ (bibtex-entry-format '(opts-or-alts
+ page-dashes
+ required-fields
+ numerical-fields
+ whitespace
+ last-comma
+ delimiters
+ unify-case
+ sort-fields))
+ (bibtex-field-delimiters 'braces)
+ (bibtex-entry-delimiters 'braces))
+
+(use-package biblio
+ :ensure t
+ :custom
+ (biblio-bibtex-use-autokey t)
+ ;; Use one name, appending ETAL if there is more than one author
+ ;; The name should be all caps
+ (bibtex-autokey-names 1)
+ (bibtex-autokey-name-case-convert-function 'upcase)
+ (bibtex-autokey-additional-names "ETAL")
+ ;; Follow this with the full year
+ ;; Probably don't need more than two digits actually
+ (bibtex-autokey-name-year-separator "-")
+ (bibtex-autokey-year-length 4)
+ ;; Follow this with initials of the title
+ (bibtex-autokey-year-title-separator "-")
+ (bibtex-autokey-titlewords t)
+ (bibtex-autokey-titleword-length -1) ;; One character
+ (bibtex-autokey-titleword-separator "")
+ (bibtex-autokey-titleword-case-convert-function 'upcase)
+ (biblio-download-directory "~/Documents/Library/Papers"))
(defun noa/yank-buffer-file-name ()