jeudi 29 avril 2010

emacs使用心得

由于保存前去掉行末的空格,所以可以使用保存来去掉行末的空格,这样有利于快速找到行末。

;;保存前,删除当前buffer中行尾空格和TAB等whitespace
(add-hook 'before-save-hook 'delete-trailing-whitespace)

Aucun commentaire:

Enregistrer un commentaire