From e088ea533f16dc5bb408f4476a698c9dbe324f46 Mon Sep 17 00:00:00 2001 From: cho Date: Thu, 28 Sep 2023 22:17:39 +0700 Subject: [PATCH] add org-roam shortcut to school and org-screenshot binding --- home/default/.config/doom/config.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/home/default/.config/doom/config.el b/home/default/.config/doom/config.el index a0600b7..efec624 100644 --- a/home/default/.config/doom/config.el +++ b/home/default/.config/doom/config.el @@ -84,6 +84,8 @@ ;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how ;; they are implemented. +(load! "bindings.el") + (after! org ;;; agenda files @@ -181,6 +183,12 @@ :if-new (file+head "articles/%<%Y%m%d%H%M%S>-${title}.org" "#+title: ${title}\n#+filetags: :article:\n") :immediate-finish t + :unnarrowed t) + + ("s" "school" plain "%?" + :if-new + (file+head "school/%<%Y%m%d%H%M%S>-${title}.org" "#+title: ${title}\n") + :immediate-finish t :unnarrowed t))) ;(cl-defmethod org-roam-node-type ((node org-roam-node)) @@ -341,3 +349,6 @@ org-download-heading-lvl nil org-download-timestamp "%Y%m%d-%H%M%S_") (add-hook 'dired-mode-hook 'org-download-enable) +(map! :leader + (:prefix ("i". "insert") + :desc "insert image from clipboard" "Y" #'org-download-screenshot))