From 36092c1c4cb683c490cc2cfd8aa9bc1d95544b57 Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Fri, 25 Aug 2023 20:12:54 +0700 Subject: [PATCH] Emacs: Add book org-capture template and global keybinding --- .config/emacs/init.org | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.config/emacs/init.org b/.config/emacs/init.org index b57b8d4..d83800f 100644 --- a/.config/emacs/init.org +++ b/.config/emacs/init.org @@ -2377,12 +2377,15 @@ and there's no need for a middle-man when it's already been implemented. #'joe/capture-leetcode-template) ("d" "Daily Entry" entry - ;; A relative file name is interpreted based on - ;; `org-directory'. - (file "~/Notes/Daily.org") + (file "Daily.org") #'joe/capture-daily) - )) - #+end_src + + ("b" "New Book To Read" entry + (file+headline "Books.org" "To Read") + "** %^{Book Title}%^{AUTHOR}p" :prepend t))) + +(define-key global-map (kbd "C-c a") #'org-capture) +#+end_src *** org-babel #+begin_src emacs-lisp (org-babel-do-load-languages