Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-01-2003, 07:40 AM   #1
LQ Newbie
Registered: Mar 2003
Location: Helsinki, Finland
Distribution: HPUX, FreeBSD, RH, SuSE
Posts: 13

Rep: Reputation: 0
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?
Old 09-01-2003, 10:33 AM   #2
Mike Mehl
LQ Newbie
Registered: Jul 2003
Distribution: Fedora Core 3
Posts: 11

Rep: Reputation: 0
(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
Old 09-01-2003, 04:01 PM   #3
LQ Newbie
Registered: Mar 2003
Location: Helsinki, Finland
Distribution: HPUX, FreeBSD, RH, SuSE
Posts: 13

Original Poster
Rep: Reputation: 0
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


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
where is the .emacs file in the emacs source code tarball? aizkorri Programming 2 01-13-2007 02:05 PM
emacs not responding to .emacs file in Mandriva 2005 LE. Please help LaptopLinux Mandriva 1 06-08-2005 08:36 AM
I am annoyed with suse paschim General 11 06-29-2004 06:33 AM
edb (emacs database) won't open file - emacs 20 & 21 tip184 Linux - Software 0 04-03-2004 07:31 AM
2 problems. boy im annoyed! any good books? e1000 Slackware 2 10-17-2003 11:46 PM

All times are GMT -5. The time now is 02:49 AM.

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