how to make emacs as default editor in bash shell? I tried setenv EDITOR emacs. It gave me the error message "setenv: command not found".
Asked
Active
Viewed 782 times
1 Answers
0
When changing profiles, make sure you always use full paths, just in case PATH is not yet set at that point. Double check if you do have setenv:
# find / -name setenv
If so, just enter its full path in your profile. Furthermore: a unix flavor would be nice for people to know, not all flavors work with the same file names.

Saskia
- 474
- 5
- 13
-
-
You don't need to write a script, you setup a VI variable in your profile file. I don't know what unix flavor you are using so I cannot help you with the right file. – Saskia Aug 23 '16 at 20:34
-
P.s. you can also create a symbolic link from emacs to "vi" and make sure the symbolic link "vi" comes before the emacs location in your PATH variable. :-) – Saskia Aug 23 '16 at 20:40
-
which flavor, not sure what you mean? I'm in a bash shell. And I'm not sure if's available on this system. I type in emacs at command line, and it says emacs command not found. – Alex Aug 23 '16 at 21:14
-
In that case your question was misleading: you want emacs and it's not found: simply install emacs then. – Saskia Aug 24 '16 at 08:48