I find that font-lock-mode
are doing something wrong with the width of single spaces no matter what monospace font I'm using.
Here are some screenshots:
Using
DejaVu Sans Mono
:font-lock-mode
on:font-lock-mode
off:Using
Luculent
:font-lock-mode
on:font-lock-mode
off:
Related (maybe) lines in my emacs init file:
(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")))))
Edit: Thanks to @Boojum 's help, I did C-u C-x =
on 3 different style of characters.
This is the result. I guess the problem is SPC
does not have a "face" property.
In addition, I also tried switching to other major modes and found that
this problem only happens in haskell-mode
.