【发布时间】:2013-01-08 18:06:06
【问题描述】:
有没有办法轻松修改光标下的font-face?
例如,下面的蓝色文字很难阅读:
以上是
的输出ipython --color "Linux"
在tango-dark 在Emacs 24.1 中运行ansi-term,即(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 中)用来表示缓冲区中字符串的面——见下文——。
【问题讨论】:
标签: emacs ipython emacs-faces