浏览代码

use whitespace.el

pull/1/head
10sr 12 年前
父节点
当前提交
7e7b88f6f4
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. +8
    -2
      emacs.el

+ 8
- 2
emacs.el 查看文件

@@ -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


正在加载...
取消
保存