mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-06-14 04:11:18 +00:00
More functional capture template for self chat
This commit is contained in:
parent
afa9de81b8
commit
9b8b27ba9d
1 changed files with 12 additions and 1 deletions
|
|
@ -69,6 +69,15 @@
|
|||
:config
|
||||
(org-roam-setup)
|
||||
(setq org-roam-dailies-directory "daily/")
|
||||
|
||||
(defun self-chat-capture-template-display-src ()
|
||||
(with-current-buffer (org-capture-get :buffer)
|
||||
(goto-char (org-capture-get :insertion-point))
|
||||
(let ((src-buffer (save-window-excursion
|
||||
(org-edit-special)
|
||||
(current-buffer))))
|
||||
(org-display-buffer-split src-buffer nil))))
|
||||
|
||||
(setq org-roam-dailies-capture-templates
|
||||
'(("j" "Journal" entry "* %<%H:%M> %?"
|
||||
:unnarrowed t
|
||||
|
|
@ -86,7 +95,9 @@
|
|||
:target
|
||||
(file+head+olp "%<%Y-%m-%d>.org"
|
||||
"#+title: %<%Y-%m-%d>\n#+filetags: :dailies:%<%Y:%B:>\n"
|
||||
("Journal")))
|
||||
("Journal"))
|
||||
:after-finalize self-chat-capture-template-display-src
|
||||
:immediate-finish)
|
||||
;; ("m" "Most Important Thing" entry "* TODO %? :mit:"
|
||||
;; :target (file+head+olp "%<%Y-%m-%d>.org"
|
||||
;; "#+title: %<%Y-%m-%d>\n#+filetags: %<:%Y:%B:>\n"
|
||||
|
|
|
|||
Loading…
Reference in a new issue