LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2003, 02:24 PM   #1
ner
Member
 
Registered: Oct 2003
Posts: 40

Rep: Reputation: 15
default editor RedHat 9.0


How do I change default editor in the RedHat 9.0 to be emacs. I tried to find the EDITOR or VISUAL variables in the /etc/profile or in the .bashrc, but they are not there, and I have no clue where else it could be... man pages for variable or variables did not help much...
thanks
ner
 
Old 11-17-2003, 03:07 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
Is EDITOR actually set (env | grep EDIT)?
If it is, then it must be set somewhere (etc/bash.bashrc or ~/.profile). Use 'grep EDITOR *' in /etc and/or 'grep EDITOR .*' in you homedir.

If it is not set you can add it yourself. If you want it set system wide put it in /etc/profile, otherwise use ~/.bashrc
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
changing default editor zyphonic Linux - General 8 11-14-2005 08:35 AM
Changing default editor Tony Empire Linux - Software 5 12-27-2004 01:45 PM
jEDIT as default editor on a PC saurya_s General 1 03-17-2004 05:00 PM
setting up your default editor tarballed Linux - Newbie 2 08-19-2003 03:30 PM
Changing default test editor in redhat 7.1 jgharagozlou Linux - Newbie 2 10-04-2001 01:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration