Disable Customize option in org-capture

This commit is contained in:
Henrik Lissner 2020-02-27 00:47:30 -05:00
parent 69e3c0d0c0
commit 61fef37e4d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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