1
yangg 2013-11-15 13:40:12 +08:00
(setq show-trailing-whitespace nil)
|
2
sevenine 2013-11-15 21:54:52 +08:00 1
这个不是单纯的高亮空格 而是行尾空格的提醒
|
3
hhkbp2 2013-11-16 17:35:25 +08:00
还是打开好,以防格式出错
;; show whitespace/tab (setq whitespace-style '(face indentation::tab indentation::space tabs tab-mark trailing)) (whitespace-mode 1) 可以参考 https://bitbucket.org/lisp/dot-emacs/src/67eb514ae643e79d7bdc734ee9cafe99fbdaeb79/site-lisp/python-mode-settings.el?at=default |
4
siteshen 2013-11-21 00:52:21 +08:00
好吧,我是来删除行末多余的空格的:
(add-hook 'before-save-hook 'delete-trailing-whitespace) |