find-file-sudo interactive
This commit is contained in:
parent
0f42657983
commit
02e35d83f0
@ -51,6 +51,7 @@
|
||||
(expand-file-name "tramp-history" backup-directory))
|
||||
:config
|
||||
(defun find-file-sudo (&rest throwaway)
|
||||
(interactive)
|
||||
(if buffer-file-name
|
||||
(unless (or (file-writable-p buffer-file-name)
|
||||
(file-directory-p buffer-file-name))
|
||||
|
Loading…
Reference in New Issue
Block a user