Emacs: Tweak whitespace-mode

master
Pierre Neidhardt 2014-11-12 15:09:14 +01:00
parent d30324d319
commit a248dd1c19
2 changed files with 5 additions and 2 deletions

View File

@ -134,7 +134,9 @@
))
(define-key my-keys-minor-mode-map (kbd "C-<f7>") 'whitespace-mode)
(setq whitespace-style (quote (face trailing tab-mark space-after-tab space-before-tab indentation::space)))
(setq
whitespace-style
'(face indentation::space space-after-tab space-before-tab tab-mark trailing))
;; TODO: whitespace report-on-bogus and cleanup do not seem to work properly.
;; Empty lines seems to be always true. Report is shown even when style is not
;; matching the errors.

View File

@ -48,7 +48,8 @@
(add-hook
'whitespace-load-hook
(lambda ()
(set-face-background 'whitespace-indentation "#696969" )))
(set-face-background 'whitespace-space-after-tab "#a9a9a9")
(set-face-background 'whitespace-indentation "#696969")))
;; Programming
(set-face-foreground 'font-lock-builtin-face "#d2691e" )