Browse Source

use whitespace.el

pull/1/head
10sr 12 years ago
parent
commit
7e7b88f6f4
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      emacs.el

+ 8
- 2
emacs.el View File

@@ -317,7 +317,7 @@ Return nil if library unfound and failed to download, otherwise the path where t
term-mode
Man-mode))

(standard-display-ascii ?\n "$\n")
;; (standard-display-ascii ?\n "$\n")

(defvar my-eol-face
'(("\n" . (0 font-lock-comment-face t nil)))
@@ -329,10 +329,16 @@ Return nil if library unfound and failed to download, otherwise the path where t

(add-hook 'font-lock-mode-hook
(lambda ()
(font-lock-add-keywords nil my-eol-face)
;; (font-lock-add-keywords nil my-eol-face)
(font-lock-add-keywords nil my-jspace-face)
))

(when (require 'whitespace nil t)
(setq whitespace-style '(face newline newline-mark empty tabs lines trailing))
;; (setq whitespace-newline 'font-lock-comment-face)
(add-to-list 'whitespace-display-mappings `(newline-mark ?\n ,(vconcat "$\n")))
(global-whitespace-mode t))

;; highlight current line
;; http://wiki.riywo.com/index.php?Meadow
(defface hlline-face


Loading…
Cancel
Save