From cb6f423b0fa82c09c370323bafa50ab6756efcdb Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Fri, 2 Jun 2023 19:55:27 +0100 Subject: Small changes to note taking --- init.el | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/init.el b/init.el index fab96da..671988d 100644 --- a/init.el +++ b/init.el @@ -879,7 +879,7 @@ https://yannherklotz.com")) (setq notmuch-fcc-dirs '(("yann@yannherklotz.com" . "mailbox/Sent -inbox +sent -unread +mailbox -new") - ("git@yannherklotz.com" . "mailbox/Sent -inbox +sent -unread +mailbox -new") + ("git@yannherklotz.com" . "mailbox/Sent -inbox +sent -unread +mailbox -new") ("yann.herklotz15@imperial.ac.uk" . "\"imperial/Sent Items\" -inbox +sent -unread +imperial -new"))) (setq +notmuch-home-function (lambda () (notmuch-search "tag:inbox")))) @@ -890,11 +890,11 @@ https://yannherklotz.com")) (use-package ebib :ensure t :bind (("C-c y b" . ebib) - ("C-c [" . ebib-insert-citation)) + ("C-c i" . ebib-insert-citation)) :custom (ebib-preload-bib-files (list (ymh/expand-bib-file "references.bib"))) - (ebib-notes-default-file (ymh/expand-bib-file "notes.org")) - (ebib-notes-template "* %T\n:PROPERTIES:\n%K\n:NOTER_DOCUMENT: papers/%k.pdf\n:END:\n%%?\n") + (ebib-notes-default-file (ymh/expand-bib-file "bibliography.org")) + (ebib-notes-template "* %T\n:PROPERTIES:\n%K\n:NOTER_DOCUMENT: papers/%k.pdf\n:END:\n\n[%C]\n\n%%?\n") (ebib-keywords (ymh/expand-bib-file "keywords.txt")) (ebib-reading-list-file (ymh/expand-bib-file "reading_list.org")) (ebib-notes-storage 'multiple-notes-per-file) @@ -915,7 +915,8 @@ https://yannherklotz.com")) (advice-add 'bibtex-generate-autokey :around (lambda (orig-func &rest args) (replace-regexp-in-string ":" "" (apply orig-func args)))) - (remove-hook 'ebib-notes-new-note-hook #'org-narrow-to-subtree)) + ;;(remove-hook 'ebib-notes-new-note-hook #'org-narrow-to-subtree) + ) (use-package spell-fu :ensure t @@ -1281,6 +1282,9 @@ https://yannherklotz.com")) (use-package bbdb-vcard :ensure t) +(use-package lua-mode + :ensure t) + (setq gc-cons-threshold (* 1024 1024 10)) (setq custom-file (expand-file-name "custom.el" user-emacs-directory)) -- cgit