diff options
author | Jesús <heckyel@hyperbola.info> | 2021-11-02 12:19:54 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-11-02 12:19:54 -0500 |
commit | e81308a39c9e5bdf0cac33c3672fa43ad5401896 (patch) | |
tree | 8f74ff0e4c2e8ef52d463171e661ab22926c5d91 | |
parent | 5c590da187d67db5c4080145d93388cbb40508c3 (diff) | |
download | emacs-personal-e81308a39c9e5bdf0cac33c3672fa43ad5401896.tar.lz emacs-personal-e81308a39c9e5bdf0cac33c3672fa43ad5401896.tar.xz emacs-personal-e81308a39c9e5bdf0cac33c3672fa43ad5401896.zip |
change sudo to doas for open file with root privileges
-rw-r--r-- | modules/init-gui.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/init-gui.el b/modules/init-gui.el index 7b83c4b..b5cb49a 100644 --- a/modules/init-gui.el +++ b/modules/init-gui.el @@ -83,12 +83,12 @@ browse-url-generic-program "iceweasel-uxp") ;;---------------------------------------------------------------------------- -;; sudo open file option +;; doas open file option ;;---------------------------------------------------------------------------- -(defun sudo-find-file (file-name) +(defun doas-find-file (file-name) "Like find file, but opens the file as root." - (interactive "FSudo Find File: ") - (let ((tramp-file-name (concat "/sudo::" (expand-file-name file-name)))) + (interactive "FDoas Find File: ") + (let ((tramp-file-name (concat "/doas::" (expand-file-name file-name)))) (find-file tramp-file-name))) ;;---------------------------------------------------------------------------- |