fix(org): fix org-mode
and yasnippet
integration
This commit is contained in:
parent
eeb35292ab
commit
49c120614a
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue