From 49c120614a54b3e030c9c301436de5fef26602b4 Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Wed, 14 Aug 2024 06:06:52 -0400 Subject: [PATCH] fix(org): fix `org-mode` and `yasnippet` integration --- config.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index f60b4e5..30ad5f3 100644 --- a/config.org +++ b/config.org @@ -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 (let* ((template (org-capture-get :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) (yas-expand-snippet template)))) #+end_src