mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix 'Tramp: sending password' loop caused by associate!
This commit is contained in:
@ -182,6 +182,7 @@ Body forms can access the hook's arguments through the let-bound variable
|
|||||||
(defun ,hook-name ()
|
(defun ,hook-name ()
|
||||||
(when (and (boundp ',mode)
|
(when (and (boundp ',mode)
|
||||||
(not ,mode)
|
(not ,mode)
|
||||||
|
(and buffer-file-name (not (file-remote-p buffer-file-name)))
|
||||||
,(if match `(if buffer-file-name (string-match-p ,match buffer-file-name)) t)
|
,(if match `(if buffer-file-name (string-match-p ,match buffer-file-name)) t)
|
||||||
,(if files (doom--resolve-paths files) t)
|
,(if files (doom--resolve-paths files) t)
|
||||||
,(or pred-form t))
|
,(or pred-form t))
|
||||||
|
Reference in New Issue
Block a user