From 75beacee8fb95391998703a9223f6b6259dcd7a2 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 19 Aug 2013 15:09:07 +0900 Subject: [PATCH] emacs.el: remove tab-mark from whitespace-style which causes unexpected display-mappining for tab --- emacs.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/emacs.el b/emacs.el index 488c046..bbc0693 100644 --- a/emacs.el +++ b/emacs.el @@ -384,19 +384,19 @@ found, otherwise returns nil." )) (when (require 'whitespace nil t) + (add-to-list 'whitespace-display-mappings ; not work + `(tab-mark ?\t ,(vconcat "^I\t"))) + (add-to-list 'whitespace-display-mappings + `(newline-mark ?\n ,(vconcat "$\n"))) (setq whitespace-style '(face trailing ; trailing blanks newline ; newlines newline-mark ; use display table for newline - tab-mark + ;; tab-mark empty ; empty lines at beg or end of buffer lines-tail ; lines over 80 )) ;; (setq whitespace-newline 'font-lock-comment-face) - (add-to-list 'whitespace-display-mappings - `(newline-mark ?\n ,(vconcat "$\n"))) - (add-to-list 'whitespace-display-mappings ; not work - `(tab-mark ?\t ,(vconcat "^I\t"))) (global-whitespace-mode t) (when (eq (display-color-cells) 256)