2

我发现font-lock-mode无论我使用什么等宽字体,单个空格的宽度都有问题。

以下是一些截图:

  • 使用DejaVu Sans Mono

    font-lock-mode上:

    djv1

    font-lock-mode离开:

    djv2

  • 使用Luculent

    font-lock-mode上:

    lu1

    font-lock-mode离开:

    lu2

我的 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 的帮助,我做C-u C-x =了 3 种不同风格的角色。 这就是结果。我想问题是SPC没有“面子”属性。

另外,我也尝试切换到其他主要模式,发现这个问题只发生在haskell-mode.

4

1 回答 1

1

我不确定发生了什么,但看起来粗体文本设置为比默认值略大的大小。你有任何定制font-lock-keyword-face吗?您是否有可能自定义面孔的站点配置文件?

可能有助于调试的一件事是将点放在示例中的一些粗体文本上并键入C-u C-x = 这将为您提供有关其显示方式的更多信息。也对一些默认(非粗体)文本执行此操作。如果您在此处发布回复,我们可能会为您提供更好的帮助。

于 2014-03-18T05:32:48.720 回答