emacs 自动备份功能

来源:互联网 发布:js escape解码 编辑:程序博客网 时间:2024/04/29 17:50

有时候你可能会发现emacs会自动生成一些东西,如果不手动删除,它会一直呆在哪里,如果是在某些系统自动调用的目录里面,那么,呵呵,很有可能闯祸哦,有两种方式来对付它:

emacs ~/.emacs(setq make-backup-files nil)

或者

(setq backup-directory-alist '(("." . "~/.emacs.d/backup"))  backup-by-copying t    ; Don't delink hardlinks  version-control t      ; Use version numbers on backups  delete-old-versions t  ; Automatically delete excess backups  kept-new-versions 20   ; how many of the newest versions to keep  kept-old-versions 5    ; and how many of the old  )

http://stackoverflow.com/questions/2680389/how-to-remove-all-files-ending-with-made-by-emacs

0 0
原创粉丝点击