有没有办法轻松修改font-face
光标下的?
例如,下面的蓝色文本很难阅读:
以上是输出
ipython --color "Linux"
ansi-term
在with tango-dark
in上运行Emacs 24.1
,即 (load-theme 'tango-dark t)
如果我what-cursor-position
在上面的图像上运行(这里描述:Get font face under cursor in Emacs),我得到:
position: 30385 of 30477 (100%), column: 22
character: / (displayed as /) (codepoint 47, #o57, #x2f)
preferred charset: ascii (ASCII (ISO646 IRV))
code point in charset: 0x2F
syntax: _ which means: symbol
category: .:Base, a:ASCII, l:Latin, r:Roman
buffer code: #x2F
file code: #x2F (encoded by coding system nil)
display: by this font (glyph code)
xft:-unknown-DejaVu LGC Sans Mono-bold-normal-normal-*-11-*-*-*-m-0-iso10646-1 (#x12)
Character code properties: customize what to show
name: SOLIDUS
old-name: SLASH
general-category: Po (Punctuation, Other)
decomposition: (47) ('/')
There are text properties here:
face (:weight bold :foreground "blue2" :background unspecified)
我怎样才能修改这个字体?
如果您想知道 IPython 仅支持三种颜色集:
Nocolor
Linux
(我上面使用的那个)LightBG
(用于浅色背景)
更新:
我认为font-lock-string-face
是一张不同的脸:
事实上,我认为这不是 IPython 用来表示字符串的面,而是python-mode
用来表示带有常规 python 代码的缓冲区中的字符串的面(tango-dark
见下文)。