I always run emacs as daemon but when I want to make something alike
sudo emacsclient /etc/make.conf
I can’t do it because root is using another emacs and I don’t really want to run 2 daemons or wait usual emacs load for simple file.
I need some solution alike emacsclientsudo /etc/make.conf 🙂 to edit system files with user emacs client.
add to your
~/.profile:then
You should be able to use
sudoeditinstead ofsudo -e, but I couldn’t findthe former on my Mac.