diff options
author | Alan Pearce | 2023-07-29 08:06:12 +0200 |
---|---|---|
committer | Alan Pearce | 2023-07-29 08:06:51 +0200 |
commit | b4b0d3e13701a165d7c65350e8516382f21c3f0d (patch) | |
tree | 7388bef361392f9902dccc073a8a7dddd91dde64 /user | |
parent | 0b70002a2689500b4d193c5b02094bdc6b7d0222 (diff) | |
download | nixfiles-b4b0d3e13701a165d7c65350e8516382f21c3f0d.tar.lz nixfiles-b4b0d3e13701a165d7c65350e8516382f21c3f0d.tar.zst nixfiles-b4b0d3e13701a165d7c65350e8516382f21c3f0d.zip |
Emacs: automatically elevate privileges when editing files
Diffstat (limited to 'user')
-rw-r--r-- | user/emacs/init.el | 2 | ||||
-rw-r--r-- | user/settings/emacs.nix | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el index f21325a3..bc53e3a5 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -599,6 +599,8 @@ _p_rev _u_pper _=_: upper/lower _r_esolve auto-revert-use-notify t) (global-auto-revert-mode t))) +(use-package auto-sudoedit + :ghook ('after-init-hook #'auto-sudoedit-mode)) (setq delete-by-moving-to-trash t) diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix index 998a6939..0e849e71 100644 --- a/user/settings/emacs.nix +++ b/user/settings/emacs.nix @@ -96,6 +96,7 @@ in [ ace-link apheleia + auto-sudoedit avy benchmark-init capf-autosuggest |