Add some more binds for citar

This commit is contained in:
Evie Litherland-Smith 2024-01-02 17:12:18 +00:00
parent 2b1c29e551
commit f5eb01f4f2

View file

@ -565,7 +565,7 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
)) ))
#+END_SRC #+END_SRC
** TODO Citar ** Citar
#+begin_src emacs-lisp :results output silent #+begin_src emacs-lisp :results output silent
(let ((citar-base-directory "~/References")) (let ((citar-base-directory "~/References"))
(setq citar-bibliography (expand-file-name "main.bib" citar-base-directory) (setq citar-bibliography (expand-file-name "main.bib" citar-base-directory)
@ -573,7 +573,12 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
citar-notes-paths (list (expand-file-name "notes" citar-base-directory)))) citar-notes-paths (list (expand-file-name "notes" citar-base-directory))))
(use-package citar (use-package citar
:ensure t :ensure t
:bind (("C-c o c o" . citar-open)) :bind (("C-c r r" . citar-open)
("C-c r e" . citar-open-entry)
("C-c r f" . citar-open-files)
("C-c r l" . citar-open-links)
("C-c r n" . citar-open-notes)
("C-c r a" . citar-attach-files))
:config :config
(defvar citar-indicator-files-icons (defvar citar-indicator-files-icons
(citar-indicator-create (citar-indicator-create
@ -591,7 +596,7 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
:face 'nerd-icons-orange :face 'nerd-icons-orange
:v-adjust 0.01) :v-adjust 0.01)
:function #'citar-has-links :function #'citar-has-links
:padding " " :padding " " ; need this because the default padding is too low for these icons
:tag "has:links")) :tag "has:links"))
(defvar citar-indicator-notes-icons (defvar citar-indicator-notes-icons
(citar-indicator-create (citar-indicator-create
@ -600,7 +605,7 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
:face 'nerd-icons-blue :face 'nerd-icons-blue
:v-adjust -0.3) :v-adjust -0.3)
:function #'citar-has-notes :function #'citar-has-notes
:padding " " :padding " " ; need this because the default padding is too low for these icons
:tag "has:notes")) :tag "has:notes"))
(defvar citar-indicator-cited-icons (defvar citar-indicator-cited-icons
(citar-indicator-create (citar-indicator-create
@ -608,7 +613,7 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
"nf-oct-circle" "nf-oct-circle"
:face 'nerd-icon-green) :face 'nerd-icon-green)
:function #'citar-is-cited :function #'citar-is-cited
:padding " " :padding " " ; need this because the default padding is too low for these icons
:tag "is:cited")) :tag "is:cited"))
(setq citar-indicators (list citar-indicator-files-icons (setq citar-indicators (list citar-indicator-files-icons
citar-indicator-links-icons citar-indicator-links-icons
@ -1009,6 +1014,7 @@ Set fill column to 88 and enable display in python buffers
:map mu4e-view-mode-map :map mu4e-view-mode-map
("o n" . mu4e-org-store-and-capture)) ("o n" . mu4e-org-store-and-capture))
:custom :custom
(add-hook 'mu4e-compose-mode-hook #'(lambda () (auto-save-mode -1))) ; Don't auto-save to drafts
(mu4e-completing-read-function #'completing-read-default) (mu4e-completing-read-function #'completing-read-default)
(mu4e-split-view 'horizontal) (mu4e-split-view 'horizontal)
(mu4e-attachment-dir "~/Downloads") (mu4e-attachment-dir "~/Downloads")
@ -1233,8 +1239,7 @@ Set fill column to 88 and enable display in python buffers
:after (mu4e alert) :after (mu4e alert)
:config :config
(mu4e-alert-set-default-style 'libnotify) (mu4e-alert-set-default-style 'libnotify)
(mu4e-alert-enable-notifications) (mu4e-alert-enable-notifications))
(mu4e-alert-enable-mode-line-display))
#+END_SRC #+END_SRC