【发布时间】:2014-04-23 15:06:30
【问题描述】:
我发现font-lock-mode 在单个空格的宽度上做错了,无论我使用什么等宽字体。
以下是一些截图:
-
使用
DejaVu Sans Mono:font-lock-mode开启:font-lock-mode关闭: -
使用
Luculent:font-lock-mode开启:font-lock-mode关闭:
我的 emacs 初始化文件中的相关(可能)行:
(custom-set-variables
...
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:inherit nil :stipple nil :inverse-video nil
:box nil :strike-through nil :overline nil
:underline nil :slant normal :weight normal
:height 120 :width normal
:foundry "unknown" :family "Luculent")))))
编辑:感谢@Boojum 的帮助,我对 3 种不同风格的角色做了C-u C-x =。
This is 结果。我猜问题是SPC 没有“面”属性。
另外,我也尝试切换到其他主要模式,发现
这个问题只发生在haskell-mode。
【问题讨论】:
标签: emacs emacs-faces font-lock haskell-mode