From 285eaf6d470aed917924ed0969722c03b9b7fa02 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 7 Jul 2022 17:35:06 -0700 Subject: 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 --- emacs/custom/my-org.el | 4 ++++ 1 file changed, 4 insertions(+) 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." -- cgit 1.4.1