From 61fef37e4ddda7026f889afcade1fec912fe4155 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 27 Feb 2020 00:47:30 -0500 Subject: [PATCH] Disable Customize option in org-capture --- modules/lang/org/config.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 66e339d4c..96360c885 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -301,6 +301,12 @@ I like: (after! org-capture (org-capture-put :kill-buffer t)) + ;; HACK Doom doesn't support `customize'. Best not to advertise it as an + ;; option in `org-capture's menu. + (defadvice! +org--remove-customize-option-a (orig-fn table title &optional prompt specials) + :around #'org-mks + (funcall orig-fn table title prompt (remove '("C" "Customize org-capture-templates") specials))) + (defadvice! +org--capture-expand-variable-file-a (file) "If a variable is used for a file path in `org-capture-template', it is used as is, and expanded relative to `default-directory'. This changes it to be