File tree Expand file tree Collapse file tree
private_dot_emacs.d/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9292; ; (use-package org-crypt
9393; ; :autoload org-crypt-use-before-save-magic)
9494
95+ (use-package org
96+ :config
97+ (dolist (face '((org-level-1 . 1.2 )
98+ (org-level-2 . 1.2 )
99+ (org-level-3 . 1.15 )
100+ (org-level-4 . 1.1 )
101+ (org-level-5 . 1.1 )
102+ (org-level-6 . 1.1 )
103+ (org-level-7 . 1.1 )
104+ (org-level-8 . 1.1 )))
105+ (set-face-attribute (car face) nil :font " Noto Sans" :weight 'bold :height (cdr face)))
106+
107+ ; ; Make the document title a bigger
108+ (set-face-attribute 'org-document-title nil :font " Noto Sans" :weight
109+ 'bold :height 1.2 )
110+
111+ ; ; To avoidline spacing issues
112+ (require 'org-indent )
113+ (set-face-attribute 'org-indent nil :inherit '(org-hide fixed-pitch ))
114+
115+ ; ; Set some parts of Org document is always use fixed-pitch
116+ (set-face-attribute 'org-block nil :foreground nil :inherit 'fixed-pitch )
117+ (set-face-attribute 'org-code nil :inherit '(shadow fixed-pitch ))
118+ (set-face-attribute 'org-indent nil :inherit '(org-hide fixed-pitch ))
119+ (set-face-attribute 'org-verbatim nil :inherit '(shadow fixed-pitch ))
120+ (set-face-attribute 'org-special-keyword nil :inherit '(font-lock-comment-face
121+ fixed-pitch ))
122+ (set-face-attribute 'org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch ))
123+ (set-face-attribute 'org-checkbox nil :inherit 'fixed-pitch )
124+
125+ ; ; Enable `variable-pitch-mode'
126+ (add-hook 'org-mode-hook 'variable-pitch-mode ))
127+
95128(provide 'setup-org )
96129; ;; setup-org.el ends here
You can’t perform that action at this time.
0 commit comments