org-confirm-elisp-link-function
org-confirm-elisp-link-function is a variable defined in `
org.el
'.
Its value is
yes-or-no-p
- This variable may be risky if used as a file-local variable.
Documentation:
Non-nil means ask for confirmation before executing Emacs Lisp links.
Elisp links can be dangerous: just think about a link
[[elisp:(shell-command "rm -rf ~/*")][Google Search]]
This link would show up in your Org-mode document as "Google Search",
but really it would remove your entire home directory.
Therefore we advise against setting this variable to nil.
Just change it to `y-or-n-p' if you want to confirm with a
single keystroke rather than having to type "yes".
You can customize this variable.