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