LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   An annoyed small problem with Emacs (https://www.linuxquestions.org/questions/linux-general-1/an-annoyed-small-problem-with-emacs-87926/)

jiey 09-01-2003 07:40 AM

An annoyed small problem with Emacs
 
heya, I have a little problem with emacs that everytime I edit some file there will be a backup of that file with the tilde '~'. so usually i need to remove them manually.

anyone knows how to avoid emacs generating such backups?

Mike Mehl 09-01-2003 10:33 AM

(setq make-backup-files nil)

in your .emacs file should do the trick.

Not that I recommend this. I make too many mistakes to not keep a backup file around for a while. Periodically run a command like this:

-----------------------------------------------------------------------------------------
#! /bin/sh

# Go to home directory
pushd ~

# Find backup files and deal with them (remove the -i if you are daring)

find . -name "*~" -exec rm -i {} ';'

# Back to your starting directory
popd
-------------------------------------------------------------------------------------------

jiey 09-01-2003 04:01 PM

thanks Mike
 
yeah i think you have given a nice idea to get rid of those instant-borning files. should run it everytime but it's much better to my work, thanks


All times are GMT -5. The time now is 04:30 PM.