summary refs log tree commit diff
path: root/emacs/custom/my-org.el
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-07-07 17:35:06 -0700
committerFranck Cuny <franck@fcuny.net>2022-07-07 17:41:08 -0700
commit285eaf6d470aed917924ed0969722c03b9b7fa02 (patch)
tree47092f67d51eed35a31552302be4db652281e293 /emacs/custom/my-org.el
parentfeat(org-mode): reset check boxes for repeated tasks (diff)
downloademacs.d-285eaf6d470aed917924ed0969722c03b9b7fa02.tar.gz
feat(org-mode): elisp links to these functions are safe
By default, when opening a link to some elisp code, org-mode prompts for
confirmation. I don't need to do that, I consider these functions safe.

Change-Id: I4b0f2a65d132bad5820690ae157454c981d09b8b
Reviewed-on: https://cl.fcuny.net/c/emacs.d/+/619
Tested-by: CI
Reviewed-by: Franck Cuny <franck@fcuny.net>
Diffstat (limited to '')
-rw-r--r--emacs/custom/my-org.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/emacs/custom/my-org.el b/emacs/custom/my-org.el
index 759af7b..4a7faaf 100644
--- a/emacs/custom/my-org.el
+++ b/emacs/custom/my-org.el
@@ -127,6 +127,10 @@
               (in-mode . "notmuch-show-mode")
               (in-mode . "notmuch-tree-mode")))))
 
+;; elisp links to these functions are considered safe, I don't need a
+;; prompt to confirm if that's what I want to execute.
+(setq org-link-elisp-skip-confirm-regexp (rx (or "elfeed" "notmuch")))
+
 ;; https://stackoverflow.com/questions/20164918/how-to-untick-checkboxes-in-org-mode-for-the-next-cyclic-repetitive-task
 (defun my/org-reset-checkbox-state-maybe ()
   "Reset all checkboxes in an entry if the `RESET_CHECK_BOXES' property is set."