关闭。这个问题是off-topic .它目前不接受答案。
想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。
8年前关闭。
Improve this question
我最近从 Geany 搬到了 Emacs,我想自定义 Emacs 中的空白字符,使其看起来像 Geany 中的空白字符。
使用 Geany,点是灰色的:
使用 Emacs,点更大且为白色:
我发现 Geany 中的点在眼睛上要淡得多。
解决方案
我评论后问题解决了(setq whitespace-style (quote (spaces tabs newline space-mark tab-mark newline-mark)))
从我的 .emacs 文件:
;; 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 「▷」
))
空白字符现在看起来完全符合预期。
最佳答案
试试 M-x customize-face
返回 whitespace-space
可再生能源
(也许从 gray30
左右的前景色开始,然后从那里调整。)
在elisp中,类似于:
(set-face-attribute 'whitespace-space nil :background nil :foreground "gray30")
(可能有一个比你正在使用的小点,但我不知道那会是什么。)
关于emacs - 在空白模式下更改字符的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15946178/