Questions tagged [sudo]

31 questions
5
votes
2 answers

"sudo emacs" Doesn't Work

I am trying to use sudo emacs with no luck so far. When I run with --debug-init I get the following. Debugger entered--Lisp error: (file-error "Cannot open load file" "no such file or directory "web-mode") Why would it be different when I am using…
Adam Thompson
  • 547
  • 3
  • 14
3
votes
2 answers

Can I acquire root privilege to edit a system file without restarting emacs with `sudo`?

Sometimes, when I am running an emacs process (either started withemacs -nw or emacsclient -nw with an emacs server daemon), I would like to edit a system file. Can I acquire root privilege without restarting emacs with sudo? If I am using an emacs…
Tim
  • 5,007
  • 7
  • 32
  • 61