add org-roam shortcut to school and org-screenshot binding

This commit is contained in:
cho 2023-09-28 22:17:39 +07:00
parent 8a62c5280c
commit e088ea533f
1 changed files with 11 additions and 0 deletions

View File

@ -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))