将Emacs组织模式中的列表与比例字体对齐?

时间:2014-12-08 17:10:06

标签: emacs org-mode

在使用比例字体时,org-mode是否可以正确对齐编号列表(和其他缩进项目),例如Helvetica?

谢谢!

1 个答案:

答案 0 :(得分:0)

不完全修复,但我在init.el中使用以下内容:

   ;; Ensure the indent face is always fixed pitch. This matches my
   ;; headline font, and therefore we indent consistent with heading font
   ;; pitch.
   (add-hook 'after-init-hook
       (lambda ()
           (set-face-attribute 'org-indent nil :inherit 'fixed-pitch)))

这使得缩进的左侧边缘对我起作用(例如,它们匹配标题的缩进),但是如果项目符号/列表行足够长以包裹,则不是很正确。不过,它解决了我的主要问题,即这些项目看起来比标题更高。