Johan Känngård » Emacs http://johankanngard.net Useful tips for developers Thu, 19 May 2011 18:40:56 +0000 en hourly 1 http://wordpress.org/?v=3.0.1 HOWTO Edit your crontab with Emacs http://johankanngard.net/2008/10/14/howto-edit-your-crontab-with-emacs/ http://johankanngard.net/2008/10/14/howto-edit-your-crontab-with-emacs/#comments Tue, 14 Oct 2008 14:49:33 +0000 Johan Känngård http://johankanngard.net/?p=322 Another “wee” tip. I had a hard time doing this right…

Put emacs in the EDITOR shell variable:

$ EDITOR=emacs
$ export EDITOR

and add the following to your ~/.emacs:

(set 'temporary-file-directory "/tmp")

Now, edit the crontab file via:

$ crontab -e

Edit and save the file, and you should get a response from crontab:

crontab: installing new crontab

If you get an error message, something is wrong. You can check that your edits really changed your crontab using:

$ crontab -l

]]>
http://johankanngard.net/2008/10/14/howto-edit-your-crontab-with-emacs/feed/ 0