From: Peng Li Date: Fri, 11 Nov 2016 08:56:28 +0000 (+0800) Subject: emacs - fix issue org-verbatim is not monospace as variable-pitch-mode enabled X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;h=70e2f651c7c18ab0631648fa8ac4972248f63c6f;hp=1629b3a51574a01fcaa1d8b5c7e55d08e44f3cb0;p=dotfiles.git emacs - fix issue org-verbatim is not monospace as variable-pitch-mode enabled --- diff --git a/emacs.d/config.org b/emacs.d/config.org index 9f86ad9..c71f248 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -1145,7 +1145,11 @@ extend org-mode's easy templates, refer to [[http://coldnew.github.io/coldnew-em (set-face-attribute face nil :inherit 'fixed-pitch)) (list 'org-code 'org-block 'org-block-background)) (set-face-attribute 'org-table nil :family "Ubuntu Mono" :height 140) + ;; org-special-keyword inherited from font-lock-keywork originally; as org is changed to variable-pitch, it cause + ;; the font in special-keywords are not monospace (set-face-attribute 'org-special-keyword nil :inherit '(font-lock-keyword-face fixed-pitch)) + ;; same as above + (set-face-attribute 'org-verbatim nil :inherit '(shadow fixed-pitch)) ;; fix indent broken by variable-pitch-mode ;; http://emacs.stackexchange.com/questions/26864/variable-pitch-face-breaking-indentation-in-org-mode