aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2022-05-03 09:27:39 +0100
committerYann Herklotz <git@yannherklotz.com>2022-05-03 09:27:39 +0100
commitc598a81efa9f125d777f4d2dc5e4f5f248f67629 (patch)
tree2fb4610b1b4d3affef16386edef1a2ac26a085cf
parentb558d57cced857c6e441ee6fb7af6e19c1f2118b (diff)
downloaddotfiles-c598a81efa9f125d777f4d2dc5e4f5f248f67629.tar.gz
dotfiles-c598a81efa9f125d777f4d2dc5e4f5f248f67629.zip
Add citation
-rw-r--r--doom/config.org6
1 files changed, 4 insertions, 2 deletions
diff --git a/doom/config.org b/doom/config.org
index ba6eb47..842744b 100644
--- a/doom/config.org
+++ b/doom/config.org
@@ -566,7 +566,9 @@
(append
'(("context"
"context --purgeall %s"
- TeX-run-command nil t :help "Run ConTeXt")) TeX-command-list)))
+ TeX-run-command nil t :help "Run ConTeXt")) TeX-command-list))
+ (map! :map ConTeXt-mode-map
+ "C-c ]" #'ebib-insert-citation))
;; Bibtex stuff
(use-package! ebib
@@ -586,7 +588,7 @@
(add-to-list 'ebib-citation-commands '(org-mode (("ref" "[cite:@%(%K%,)]"))))
(add-to-list 'ebib-citation-commands '(context-mode (("cite" "\\cite[%(%K%,)]")
("authoryear" "\\cite[authoryear][%(%K%,)]")
- ("authoryears" "\\cite[entry][%(%K%,)]")
+ ("authoryears" "\\cite[authoryears][%(%K%,)]")
("entry" "\\cite[entry][%(%K%,)]")
("authors" "\\cite[authors][%(%K%,)]"))))