我最近从Geany转到Emacs,我想将Emacs中的空格字符定制为与Geany中的字符相似。
在Geany中,圆点非常小而且是灰色的:
在Emacs中,圆点更大且为白色:
我发现Geany中的圆点对眼睛更轻松。
解决方案
我从我的 .emacs 文件中注释了 (setq whitespace-style (quote (spaces tabs newline space-mark tab-mark newline-mark)))
后问题得以解决:
;; make whitespace-mode use just basic coloring
;;(setq whitespace-style (quote (spaces tabs newline space-mark tab-mark newline-mark)))
(setq whitespace-display-mappings
;; all numbers are Unicode codepoint in decimal. ⁖ (insert-char 182 1)
'(
(space-mark 32 [183] [46]) ; 32 SPACE 「 」, 183 MIDDLE DOT 「·」, 46 FULL STOP 「.」
(newline-mark 10 [182 10]) ; 10 LINE FEED
(tab-mark 9 [9655 9] [92 9]) ; 9 TAB, 9655 WHITE RIGHT-POINTING TRIANGLE 「▷」
))
空格字符现在看起来正如预期的那样。
face
添加到whitespace-style
列表中,而不是注释掉这一行。 - user519736