LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-11-2003, 03:41 PM   #1
downinthemine
Member
 
Registered: Jul 2003
Location: Silver Spring, MD
Distribution: Xubuntu
Posts: 167

Rep: Reputation: 30
Trouble changing default editor


I recently discovered the power of crontab. However, I am not a huge fan of vim. I entered
Code:
set editor=emacs
But when I run crontab -e right afterward, I was placed in vim.

What did I do wrong?
 
Old 12-11-2003, 03:44 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
try
export EDITOR=/usr/bin/emacs


Cheers,
Tink
 
Old 12-11-2003, 03:45 PM   #3
downinthemine
Member
 
Registered: Jul 2003
Location: Silver Spring, MD
Distribution: Xubuntu
Posts: 167

Original Poster
Rep: Reputation: 30
Perfect. Could you tell me whether my first command changed anything on my system?
 
Old 12-11-2003, 03:48 PM   #4
downinthemine
Member
 
Registered: Jul 2003
Location: Silver Spring, MD
Distribution: Xubuntu
Posts: 167

Original Poster
Rep: Reputation: 30
Shoot, I used the export command, but now it edits a file in /tmp, not the master crontab file. Is there a way to edit the master file using emacs?
 
Old 12-11-2003, 03:48 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
nope .. it just set a variable editor local to
that one shell which will die with closing it :)

You may want to put the export statement
in .bashrc, .bash_profle or .bash_login :}


Cheers,
Tink
 
  


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 07:35 AM
Changing default editor Tony Empire Linux - Software 5 12-27-2004 12:45 PM
jEDIT as default editor on a PC saurya_s General 1 03-17-2004 04:00 PM
trouble changing default boot to linux reetep Linux - Newbie 6 11-04-2003 12:14 PM
Changing default test editor in redhat 7.1 jgharagozlou Linux - Newbie 2 10-04-2001 12:42 PM


All times are GMT -5. The time now is 06:45 PM.

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