Disable Customize option in org-capture
This commit is contained in:
parent
69e3c0d0c0
commit
61fef37e4d
1 changed files with 6 additions and 0 deletions
|
@ -301,6 +301,12 @@ I like:
|
||||||
(after! org-capture
|
(after! org-capture
|
||||||
(org-capture-put :kill-buffer t))
|
(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)
|
(defadvice! +org--capture-expand-variable-file-a (file)
|
||||||
"If a variable is used for a file path in `org-capture-template', it is used
|
"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
|
as is, and expanded relative to `default-directory'. This changes it to be
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue