Skip to content

Commit 3243822

Browse files
committed
don't scale org headlines by default
1 parent 6f0aa25 commit 3243822

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

starlit-theme.el

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ in the theme."
9999
:group 'starlit-theme)
100100

101101

102+
(defcustom starlit-scale-org-headlines nil
103+
"Change the font size of org-mode headlines."
104+
:type 'boolean
105+
:group 'starlit-theme)
106+
107+
102108
;;; Mapping colors to Faces
103109
;; https://www.gnu.org/software/emacs/manual/html_node/elisp/Defining-Faces.html
104110
;; https://www.gnu.org/software/emacs/manual/html_node/elisp/Face-Attributes.html
@@ -266,6 +272,15 @@ in the theme."
266272
`(org-footnote ((,colorful (:foreground ,.aqua))))
267273
`(org-formula ((,colorful (:foreground ,.red))))
268274
`(org-hide ((,colorful (:foreground ,.background :background ,.background))))
275+
`(org-level-1 ((,colorful (:inherit nil :foreground ,.bluelight ,@(when starlit-scale-org-headlines '(:height 1.3))))))
276+
`(org-level-2 ((,colorful (:inherit nil :foreground ,.yellow ,@(when starlit-scale-org-headlines '(:height 1.2))))))
277+
`(org-level-3 ((,colorful (:inherit nil :foreground ,.purple ,@(when starlit-scale-org-headlines '(:height 1.1))))))
278+
`(org-level-4 ((,colorful (:inherit nil :foreground ,.aqua))))
279+
`(org-level-5 ((,colorful (:inherit nil :foreground ,.orange))))
280+
`(org-level-6 ((,colorful (:inherit nil :foreground ,.greenlight))))
281+
`(org-level-7 ((,colorful (:inherit nil :foreground ,.type))))
282+
`(org-level-8 ((,colorful (:inherit nil :foreground ,.bluehighlight))))
283+
`(org-level-9 ((,colorful (:inherit nil :foreground ,.blue))))
269284
`(org-link ((,colorful (:foreground ,.blue :underline t))))
270285
`(org-meta-line ((,colorful (:inherit (fixed-pitch font-lock-comment-face) :foreground ,.bluedark))))
271286
`(org-ref-ref-face ((,colorful :underline t)))
@@ -281,9 +296,9 @@ in the theme."
281296
`(org-todo ((,colorful (:foreground ,.red))))
282297
`(org-upcoming-deadline ((,colorful (:foreground ,.orange))))
283298
`(org-warning ((,colorful (:weight bold :foreground ,.red))))
284-
`(outline-1 ((,colorful (:inherit nil :foreground ,.bluelight ,@(when starlit-scale-headlines (list :height 1.3))))))
285-
`(outline-2 ((,colorful (:inherit nil :foreground ,.yellow ,@(when starlit-scale-headlines (list :height 1.2))))))
286-
`(outline-3 ((,colorful (:inherit nil :foreground ,.purple ,@(when starlit-scale-headlines (list :height 1.1))))))
299+
`(outline-1 ((,colorful (:inherit nil :foreground ,.bluelight ,@(when starlit-scale-headlines '(:height 1.3))))))
300+
`(outline-2 ((,colorful (:inherit nil :foreground ,.yellow ,@(when starlit-scale-headlines '(:height 1.2))))))
301+
`(outline-3 ((,colorful (:inherit nil :foreground ,.purple ,@(when starlit-scale-headlines '(:height 1.1))))))
287302
`(outline-4 ((,colorful (:inherit nil :foreground ,.aqua))))
288303
`(outline-5 ((,colorful (:inherit nil :foreground ,.orange))))
289304
`(outline-6 ((,colorful (:inherit nil :foreground ,.greenlight))))

0 commit comments

Comments
 (0)