Home > Emacs > Emacs Backup

Emacs Backup

This is a simple hack.

If you want emacs to backup the files you edit just put this line on your .emacs file:

(setq home-backup “MyDir”)

just replace MyDir with the directory you wish to save your backup files to.

If you are like me you want to carry your emacs with you everywhere in your USB hard drive. PigPog has the solution here.

Using that hack you can use the following line to back up directly to your USB hard drive:

(setq home-backup (concat (getenv “HOME”) “Backup/”))

The above line backups the file to your %HOME%/Backup/

Categories: Emacs Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: