Fix whitespace-mode settings

This commit is contained in:
Henrik Lissner 2015-07-23 01:34:05 +02:00
parent e8bb52a2d9
commit 8d586b3547
2 changed files with 8 additions and 4 deletions

View file

@ -20,9 +20,10 @@
shift-select-mode nil
whitespace-style '(trailing face tabs tab-mark)
tabify-regexp "^\t* [ \t]+"
whitespace-style '(face trailing tabs tab-mark newline newline-mark)
whitespace-display-mappings
'((tab-mark ?\t [?| ?\t] [?\\ ?\t])
'((tab-mark ?\t [?\u2502 ?\t] [?\\ ?\t])
(newline-mark 10 [36 10]))
truncate-lines t ; do not soft-wrap lines
@ -89,6 +90,9 @@
(global-auto-revert-mode 1) ; revert buffers for changed files
(electric-indent-mode -1)
;; (add-hook! prog-mode 'whitespace-mode)
;; (add-hook! emacs-lisp-mode 'whitespace-mode)
;; window config undo/redo
(setq winner-dont-bind-my-keys t)
(winner-mode 1)

View file

@ -84,8 +84,8 @@
`(font-lock-doc-face ((t (:foreground ,comments))))
`(trailing-whitespace ((t (:background "#884444"))))
`(whitespace-tab ((t (:foreground "#444444"))))
`(whitespace-newline ((t (:foreground "#444444"))))
`(whitespace-tab ((t (:foreground ,line-hl))))
`(whitespace-newline ((t (:foreground ,line-hl))))
`(whitespace-trailing ((t (:background "#553333"))))
`(highlight-indentation-face ((t (:background "#2f3641"))))