diff options
author | Ryan Kavanagh <rak@rak.ac> | 2021-01-28 20:46:56 -0500 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2021-01-28 20:46:56 -0500 |
commit | fc3221e64708417111ea1349701b41f707390ecd (patch) | |
tree | 4d23d23529aca3389d535410a6da2a571fe2f4d4 /.emacs | |
parent | Override arxiv-get-bibtex-entry-via-arxiv-api to use biblatex format (diff) |
Add bindings for set-checked-date
Diffstat (limited to '')
-rw-r--r-- | .emacs | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -601,7 +601,9 @@ If not, issue a warning." (use-package org-ref-core :ensure org-ref :after helm-bibtex - :bind (("C-c C-c" . org-ref-clean-bibtex-entry)) + :bind (:map bibtex-mode-map + ("C-c C-c" . org-ref-clean-bibtex-entry) + ("C-c d" . my/set-checked-date)) :config (defun org-ref-rak-title-case-english () "Call org-ref-title-case only if the language field is set @@ -611,6 +613,12 @@ If not, issue a warning." (let ((langfield (bibtex-autokey-get-field "language"))) (if (= (length langfield) 0) (org-ref-title-case)))) + (defun my/set-checked-date () + "Set the _checked field of a bibtex entry to the current date." + (interactive) + (save-excursion + (bibtex-beginning-of-entry) + (bibtex-set-field "_checked" (format-time-string "%Y-%m-%d")))) ;; taken from org-ref-bibtex.el and extended (setq org-ref-nonascii-latex-replacements (append '(("fi" . "fi") |