branch: externals/modus-operandi-theme commit 5bff8ced717568b498a57c4b068a7837da008166 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Add another step in the font scale for headings This is intended for use in contexts where the document's title is supposed to be larger than the largest subheading. --- README.org | 12 ++++++++---- modus-operandi-theme.el | 5 +++++ modus-vivendi-theme.el | 5 +++++ 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/README.org b/README.org index 20ade8a..ae34777 100644 --- a/README.org +++ b/README.org @@ -213,18 +213,21 @@ In addition to toggles for enabling scaled headings, users can also specify the exact multiplier relative to the base font size. These are the variables in their default sizes, from the smallest to the largest (the numbers are very conservative, but you are free to increase them a -bit, such as =1.2=, =1.4=, =1.6=, =1.8=): +bit, such as =1.2=, =1.4=, =1.6=, =1.8=, =2.0=---or use a resource for finding a +consistent scale, like [[https://www.modularscale.com][modularscale.com]]): #+begin_src emacs-lisp (setq modus-operandi-theme-scale-1 1.05 modus-operandi-theme-scale-2 1.1 modus-operandi-theme-scale-3 1.15 - modus-operandi-theme-scale-4 1.2) + modus-operandi-theme-scale-4 1.2 + modus-operandi-theme-scale-5 1.3) (setq modus-vivendi-theme-scale-1 1.05 modus-vivendi-theme-scale-2 1.1 modus-vivendi-theme-scale-3 1.15 - modus-vivendi-theme-scale-4 1.2) + modus-vivendi-theme-scale-4 1.2 + modus-vivendi-theme-scale-5 1.3) #+end_src Note that in Org, scaling only increases the size of the heading, but @@ -350,7 +353,8 @@ being available. modus-operandi-theme-scale-1 1.05 modus-operandi-theme-scale-2 1.1 modus-operandi-theme-scale-3 1.15 - modus-operandi-theme-scale-4 1.2) + modus-operandi-theme-scale-4 1.2 + modus-operandi-theme-scale-5 1.3) :config (load-theme 'modus-operandi t)) #+end_src diff --git a/modus-operandi-theme.el b/modus-operandi-theme.el index d7a8743..0d6c4ec 100644 --- a/modus-operandi-theme.el +++ b/modus-operandi-theme.el @@ -57,6 +57,7 @@ ;; modus-operandi-theme-scale-2 1.1 ;; modus-operandi-theme-scale-3 1.15 ;; modus-operandi-theme-scale-4 1.2 +;; modus-operandi-theme-scale-5 1.3 ;; ;; What follows is the list of explicitly supported packages or face ;; groups (there are implicitly supported packages as well, which @@ -411,6 +412,10 @@ between foreground and background is >= 7:1)." "Font size slightly larger than `modus-operandi-theme-scale-3'." :type 'number) +(defcustom modus-operandi-theme-scale-5 1.3 + "Font size slightly larger than `modus-operandi-theme-scale-4'." + :type 'number) + (defcustom modus-operandi-theme-visible-fringes nil "Use a visible style for fringes." :type 'boolean) diff --git a/modus-vivendi-theme.el b/modus-vivendi-theme.el index 0e33162..19875f8 100644 --- a/modus-vivendi-theme.el +++ b/modus-vivendi-theme.el @@ -57,6 +57,7 @@ ;; modus-vivendi-theme-scale-2 1.1 ;; modus-vivendi-theme-scale-3 1.15 ;; modus-vivendi-theme-scale-4 1.2 +;; modus-vivendi-theme-scale-5 1.3 ;; ;; What follows is the list of explicitly supported packages or face ;; groups (there are implicitly supported packages as well, which @@ -411,6 +412,10 @@ between foreground and background is >= 7:1)." "Font size slightly larger than `modus-vivendi-theme-scale-3'." :type 'number) +(defcustom modus-vivendi-theme-scale-5 1.3 + "Font size slightly larger than `modus-vivendi-theme-scale-4'." + :type 'number) + (defcustom modus-vivendi-theme-visible-fringes nil "Use a visible style for fringes." :type 'boolean)