fix(org): fix org-mode and yasnippet integration

This commit is contained in:
Kiana Sheibani 2024-08-14 06:06:52 -04:00
parent eeb35292ab
commit 49c120614a
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -3444,7 +3444,8 @@ The goal is to hook into Org's capturing system to get it to feed its template i
:around #'org-capture-place-template :around #'org-capture-place-template
(let* ((template (org-capture-get :template)) (let* ((template (org-capture-get :template))
(org-capture-plist (plist-put org-capture-plist :template ""))) (org-capture-plist (plist-put org-capture-plist :template "")))
(cl-letf (((symbol-function 'org-kill-is-subtree-p) #'always)) (letf! ((#'org-paste-subtree #'ignore)
(#'org-kill-is-subtree-p #'always))
(funcall old-fn arg) (funcall old-fn arg)
(yas-expand-snippet template)))) (yas-expand-snippet template))))
#+end_src #+end_src