Skip to main content
Share Your Experience: Take the 2024 Developer Survey
16 votes
Accepted

Execute org-mode source blocks without security confirmation

While I personally don't use babel much, going from the example, this should simply be: (defun my-org-confirm-babel-evaluate (lang body) (not (member lang '("C" "clojure" "sh")))) (setq org-...
ryuslash's user avatar
  • 276
10 votes
Accepted

Can I mark a local variable as safe for a single file only?

In the elisp manual at C-hig (elisp)File Local Variables we find: You can specify safe values for a variable with a ‘safe-local-variable’ property. The property has to be a function of one argument; ...
phils's user avatar
  • 51.6k
3 votes
Accepted

At the time of prompting for a password (from a subordinate shell), sometimes Emacs hides the password, sometimes not. Why the inconsistency?

comint uses a regular expression to recognize password prompts: comint-password-prompt-regexp. It's fairly complicated in an attempt to catch as many variations as possible, but it is conceivable (and ...
NickD's user avatar
  • 30.6k
2 votes

Avoid placing safe-local-variable-values in init file

Since you said your skills with elisp are very limited, I tried to simplify the solution. Now all you need to do is change the value of your/safe-vars-file. ;;; Put them into your configuration file. ...
shynur's user avatar
  • 5,328
2 votes

Avoid placing safe-local-variable-values in init file

Yes, possible. You need to change the definition of hack-local-variables-confirm. Find the form (customize-push-and-save (if (= char ?!) ...)) and modify it. I agree with you to some extent: these ...
shynur's user avatar
  • 5,328
2 votes
Accepted

risky file local “outline-level”

Its value is a function: Its value is ‘outline-level’ Function of no args to compute a header’s nesting level in an outline. It can assume point is at the beginning of a header line and that the ...
NickD's user avatar
  • 30.6k
2 votes
Accepted

Secure random numbers

You could use the approach described in this article, which uses a call to head to get the first bits/8 bytes from /dev/urandom using the following snippet: (with-temp-buffer (set-buffer-multibyte ...
Arnot's user avatar
  • 671
2 votes
Accepted

How to avoid emacs pop-up security warning for code eval

(setq org-confirm-shell-link-function nil) But: Shell links can be dangerous: just think about a link [[shell:rm -rf ~/*][Google Search]] This link would show up in your Org document as "Google ...
Firmin Martin's user avatar
1 vote
Accepted

How can I create secrets for use with the Secrets API auth-source?

The first thing to do is confirm which fields need to be included in the secret. Frequently this includes host and user. For smtp, this also includes port. You can find this information by looking for ...
Felipe's user avatar
  • 329

Only top scored, non community-wiki answers of a minimum length are eligible