Mat*_*ieu 12 emacs whitespace colors
我最近从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 ???
))
Run Code Online (Sandbox Code Playgroud)
现在,空白字符看起来与预期完全一样.
phi*_*ils 13
尝试 M-x customize-face RET whitespace-space RET
(也许从周围的前景色开始gray30,然后从那里进行调整.)
在elisp中,类似于:
(set-face-attribute 'whitespace-space nil :background nil :foreground "gray30")
Run Code Online (Sandbox Code Playgroud)
(可能有一个比你正在使用的点小的点,但我不知道那会是什么.)
| 归档时间: |
|
| 查看次数: |
4241 次 |
| 最近记录: |