9
rated 0 times
[
9]
[
0]
/ answers: 1 / hits: 18335
/ 2 Years ago, wed, september 21, 2022, 5:36:57
When editing files like sudoers
, I want to use emacs instead of nano. So I ran this command
sudo update-alternatives --config editor
And I selected emacs. The only issue is I like emacs in no window mode (the -nw flag) and I've aliased emacs as emacs='emacs -nw'
so that I can use no window mode in normal use, but I don't know how to get my default editor to be in no window mode.
In other words, I need to get the command sudo visudo
and similar commands that open up editors to open the file with emacs -nw
. How can I do this? I'm on Ubuntu 12.04.
More From » default-programs