by pkal · 7mo ago · 0 comments
(add-hook 'lisp-interaction-mode-hook (lambda () (setq-local trusted-content :all)))
Only the scratch buffer is to be exempted, not every buffer that gets this mode.
(when (equal (buffer-name) "*scratch*") ...) (with-current-buffer "*scratch*"
(setq-local trusted-content :all))If we are already experimenting with different ideas, this should also work (and gives a hint of how you want to fix the issue upstream):
(define-advice get-scratch-buffer-create (:filter-return (buf) trusted)
(with-current-buffer buf
(setq-local trusted-content :all))
buf)