Re: Is it possible to prevent emacs auto saving the filename~?

2009-05-05 Thread 明覺
On Tue, May 5, 2009 at 3:59 AM, Memnon Anon gegendosenflei...@gmail.com wrote:
 明覺 shi.min...@gmail.com writes:

 thank you, now I prefer the way to keep all the backup and autosave
 files in a seperate directory, such as ~/.emacs.d/autosave and
 ~/.emacs.d/backup, how could i setup that?  I'm not familiar with
 emacs, currently in my machine, there is only the ~/.emacs.d/
 directory which seems relative to emacs setup. Could you help give a
 document that details the setup steps for those purpose? thanks

 I have this in my .emacs:
 ;; Backup
 (defvar backup-dir (expand-file-name ~/.emacs.d/ebackup/))
 (defvar autosave-dir (expand-file-name ~/.emacs.d/eautosave/))
 (setq backup-directory-alist (list (cons .* backup-dir)))
 (setq auto-save-list-file-prefix autosave-dir)
 (setq auto-save-file-name-transforms `((.* ,autosave-dir t)))

 I am not sure, I think it was in the emacs faq.
thank you, i followed your instructions and now the backup files and
autosave files goes into .emacs.d subfolders instead of the working
folder, but I found that when i'm editing a file, there is still a
.#filename file existing, how could I also move the .#filename into a
subfolder of .emacs.d? thanks


 hth


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org





-- 
My platform is Gnu/Linux Debian(sid-amd64, lenny-intelx86) Gnome
Mozilla/Iceweasel Gmail/Evolution Gtkmm/Anjuta/Emacs Scim Totem
Pidgin.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Is it possible to prevent emacs auto saving the filename~?

2009-05-04 Thread Memnon Anon
明覺 shi.min...@gmail.com writes:

 thank you, now I prefer the way to keep all the backup and autosave
 files in a seperate directory, such as ~/.emacs.d/autosave and
 ~/.emacs.d/backup, how could i setup that?  I'm not familiar with
 emacs, currently in my machine, there is only the ~/.emacs.d/
 directory which seems relative to emacs setup. Could you help give a
 document that details the setup steps for those purpose? thanks

I have this in my .emacs:
;; Backup
(defvar backup-dir (expand-file-name ~/.emacs.d/ebackup/))
(defvar autosave-dir (expand-file-name ~/.emacs.d/eautosave/))
(setq backup-directory-alist (list (cons .* backup-dir)))
(setq auto-save-list-file-prefix autosave-dir)
(setq auto-save-file-name-transforms `((.* ,autosave-dir t)))

I am not sure, I think it was in the emacs faq.

hth


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Is it possible to prevent emacs auto saving the filename~?

2009-05-04 Thread 明覺
On Tue, May 5, 2009 at 3:59 AM, Memnon Anon gegendosenflei...@gmail.com wrote:
 明覺 shi.min...@gmail.com writes:

 thank you, now I prefer the way to keep all the backup and autosave
 files in a seperate directory, such as ~/.emacs.d/autosave and
 ~/.emacs.d/backup, how could i setup that?  I'm not familiar with
 emacs, currently in my machine, there is only the ~/.emacs.d/
 directory which seems relative to emacs setup. Could you help give a
 document that details the setup steps for those purpose? thanks

 I have this in my .emacs:
 ;; Backup
 (defvar backup-dir (expand-file-name ~/.emacs.d/ebackup/))
 (defvar autosave-dir (expand-file-name ~/.emacs.d/eautosave/))
 (setq backup-directory-alist (list (cons .* backup-dir)))
 (setq auto-save-list-file-prefix autosave-dir)
 (setq auto-save-file-name-transforms `((.* ,autosave-dir t)))

 I am not sure, I think it was in the emacs faq.
do you mean I create the file ~/.emacs, and fill the file with the
following content? thanks

;; Backup
(defvar backup-dir (expand-file-name ~/.emacs.d/ebackup/))
(defvar autosave-dir (expand-file-name ~/.emacs.d/eautosave/))
(setq backup-directory-alist (list (cons .* backup-dir)))
(setq auto-save-list-file-prefix autosave-dir)
(setq auto-save-file-name-transforms `((.* ,autosave-dir t)))

 hth


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




-- 
My platform is Gnu/Linux Debian(sid-amd64, lenny-intelx86) Gnome
Mozilla/Iceweasel Gmail/Evolution Gtkmm/Anjuta/Emacs Scim Totem
Pidgin.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Is it possible to prevent emacs auto saving the filename~?

2009-05-03 Thread 明覺
I know that emacs auto save a file named filename~ when I modified the
file filename, but I do not like the autosaved copy, could i stop this
function? thanks

-- 
My platform is Gnu/Linux Debian(sid-amd64, lenny-intelx86) Gnome
Mozilla/Iceweasel Gmail/Evolution Gtkmm/Anjuta/Emacs Scim Totem
Pidgin.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Is it possible to prevent emacs auto saving the filename~?

2009-05-03 Thread tyler
明覺 shi.min...@gmail.com writes:

 I know that emacs auto save a file named filename~ when I modified the
 file filename, but I do not like the autosaved copy, could i stop this
 function? thanks

Set auto-save-default to nil, as explained in the Emacs manual:

(info (emacs)Auto Save Control)

Adding

(setq auto-save-default nil)

to your .emacs will do this automatically.

Cheers,

Tyler

-- 
What is wanted is not the will to believe, but the will to find out,
which is the exact opposite.   --Bertrand Russell


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Is it possible to prevent emacs auto saving the filename~?

2009-05-03 Thread tyler
tyler tyler.sm...@mail.mcgill.ca writes:

 明覺 shi.min...@gmail.com writes:

 I know that emacs auto save a file named filename~ when I modified the
 file filename, but I do not like the autosaved copy, could i stop this
 function? thanks

 Set auto-save-default to nil, as explained in the Emacs manual:

 (info (emacs)Auto Save Control)

 Adding

 (setq auto-save-default nil)

 to your .emacs will do this automatically.


Oops! My mistake - this will turn off the auto-save feature, but what
you were asking about was the backup feature, which is something
different. It's controlled the same way though:

(setq make-backup-files nil)

Details here:

(info (emacs)Backup)

Cheers,

Tyler

-- 
The contents of this email have been carefully examined by skilled
artisans to ensure that only the purest, archival-quality, virus-free
bits have been used in its construction.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Is it possible to prevent emacs auto saving the filename~?

2009-05-03 Thread 明覺
On Sun, May 3, 2009 at 9:58 PM, tyler tyler.sm...@mail.mcgill.ca wrote:
 tyler tyler.sm...@mail.mcgill.ca writes:

 明覺 shi.min...@gmail.com writes:

 I know that emacs auto save a file named filename~ when I modified the
 file filename, but I do not like the autosaved copy, could i stop this
 function? thanks

 Set auto-save-default to nil, as explained in the Emacs manual:

 (info (emacs)Auto Save Control)

 Adding

 (setq auto-save-default nil)

 to your .emacs will do this automatically.

thank you, now I prefer the way to keep all the backup and autosave
files in a seperate directory, such as ~/.emacs.d/autosave and
~/.emacs.d/backup, how could i setup that?  I'm not familiar with
emacs, currently in my machine, there is only the ~/.emacs.d/
directory which seems relative to emacs setup. Could you help give a
document that details the setup steps for those purpose? thanks



 Oops! My mistake - this will turn off the auto-save feature, but what
 you were asking about was the backup feature, which is something
 different. It's controlled the same way though:

 (setq make-backup-files nil)

 Details here:

 (info (emacs)Backup)

 Cheers,

 Tyler

 --
 The contents of this email have been carefully examined by skilled
 artisans to ensure that only the purest, archival-quality, virus-free
 bits have been used in its construction.


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org





-- 
My platform is Gnu/Linux Debian(sid-amd64, lenny-intelx86) Gnome
Mozilla/Iceweasel Gmail/Evolution Gtkmm/Anjuta/Emacs Scim Totem
Pidgin.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org