Prevent unsafe file variable prompts on help links
This commit is contained in:
parent
ce86fa0557
commit
6490c4b922
1 changed files with 2 additions and 1 deletions
|
@ -110,7 +110,7 @@ the command buffer."
|
|||
;; `help-mode'
|
||||
(after! help-mode
|
||||
(defun doom--switch-from-popup (location)
|
||||
(let (origin)
|
||||
(let (origin enable-local-variables)
|
||||
(save-popups!
|
||||
(switch-to-buffer (car location) nil t)
|
||||
(if (not (cdr location))
|
||||
|
@ -154,6 +154,7 @@ the command buffer."
|
|||
;; Open link in origin window (non-popup) instead of inside the popup window.
|
||||
(defun +popup*helpful--navigate (button)
|
||||
(let ((path (substring-no-properties (button-get button 'path)))
|
||||
enable-local-variables
|
||||
origin)
|
||||
(save-popups!
|
||||
(find-file path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue