Emacs: automatically elevate privileges when editing files
Alan Pearce alan@alanpearce.eu
Sat, 29 Jul 2023 08:06:12 +0200
2 files changed, 3 insertions(+), 0 deletions(-)
M user/emacs/init.el → user/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.nix → user/settings/emacs.nix
@@ -96,6 +96,7 @@ extraPackages = epkgs: (with epkgs; [ ace-link apheleia + auto-sudoedit avy benchmark-init capf-autosuggest