aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-11-02 12:19:54 -0500
committerJesús <heckyel@hyperbola.info>2021-11-02 12:19:54 -0500
commite81308a39c9e5bdf0cac33c3672fa43ad5401896 (patch)
tree8f74ff0e4c2e8ef52d463171e661ab22926c5d91
parent5c590da187d67db5c4080145d93388cbb40508c3 (diff)
downloademacs-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.el8
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)))
;;----------------------------------------------------------------------------