all repos — nixfiles @ b4b0d3e13701a165d7c65350e8516382f21c3f0d

System and user configuration, managed by nix and home-manager

Emacs: automatically elevate privileges when editing files
Alan Pearce alan@alanpearce.eu
Sat, 29 Jul 2023 08:06:12 +0200
commit

b4b0d3e13701a165d7c65350e8516382f21c3f0d

parent

0b70002a2689500b4d193c5b02094bdc6b7d0222

2 files changed, 3 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -599,6 +599,8 @@ (setq auto-revert-verbose nil                   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)
 
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -96,6 +96,7 @@ extraPackages = epkgs: (with epkgs;       [
         ace-link
         apheleia
+        auto-sudoedit
         avy
         benchmark-init
         capf-autosuggest