emacs下“#filename#”文件如何不让它生成

Vim、Emacs配置和使用
回复
rjiejie
帖子: 19
注册时间: 2007-10-11 21:57

emacs下“#filename#”文件如何不让它生成

#1

帖子 rjiejie » 2008-11-02 11:10

如题。。。。知道的朋友好心告诉下
被折磨死了。。。。
头像
frozenthrone
帖子: 10
注册时间: 2006-08-10 19:04

Re: emacs下“#filename#”文件如何不让它生成

#2

帖子 frozenthrone » 2008-11-03 2:31

(setq-default make-backup-files nil)
codycody23
帖子: 167
注册时间: 2008-06-19 15:27

Re: emacs下“#filename#”文件如何不让它生成

#3

帖子 codycody23 » 2008-11-03 10:35

留着不好? 出问题了可以恢复。。。。。。。 :em01
morningboat
帖子: 179
注册时间: 2006-06-09 20:31

Re: emacs下“#filename#”文件如何不让它生成

#4

帖子 morningboat » 2008-11-04 13:02

你可以设置专门的备份目录, 这样在当前目录就不会出现备份的文件, 而且也可以在崩溃的时候恢复. 比如:
(setq backup-directory-alist '(("." . "~/var/tmp")))
(setq backup-by-copying t)
rjiejie
帖子: 19
注册时间: 2007-10-11 21:57

Re: emacs下“#filename#”文件如何不让它生成

#5

帖子 rjiejie » 2008-11-04 15:39

额。。。感谢大家。。我也觉得放到指定目录比较好。。。谢谢
回复