branch: elpa/zenburn-theme
commit d9e6bdc2756632c0ddd05086e9a1e6810645583a
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    Modernize customization vars
    
    Promote the three boolean toggles (zenburn-use-variable-pitch,
    zenburn-scale-org-headlines, zenburn-scale-outline-headlines) from
    plain defvars to defcustoms so they surface in customize-group and
    accept booleanp file-local values.
    
    Also drop zenburn-height-minus-1: it carried a defcustom slot since
    2.6 but is referenced nowhere in the theme.
---
 CHANGELOG.md     |  2 ++
 zenburn-theme.el | 27 +++++++++++++++------------
 2 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index fa6b0b126c..9ecf3c1376 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -25,7 +25,9 @@
 
 ### Changes
 
+* Promote `zenburn-use-variable-pitch`, `zenburn-scale-org-headlines`, and 
`zenburn-scale-outline-headlines` from plain `defvar`s to boolean `defcustom`s 
so they show up in `M-x customize-group RET zenburn-theme` and accept safe 
file-local values.
 * Drop the legacy `((class color) (min-colors 89))` display-class dance and 
the obsolete low-color terminal fallbacks (`:inverse-video`, swapped fg/bg, 
monochrome `:weight bold`) for `mode-line`, `region`, `diff-header`, 
`diff-file-header`, `hl-line`, `hl-line-face`, and `hl-sexp-face`. Modern 
terminals all qualify as full-color, so the branching no longer earns its keep.
+* Drop `zenburn-height-minus-1`, which has been defined but never referenced 
anywhere in the theme.
 * Route `adoc-comment-face`, `ledger-font-comment-face`, and `js2-jsdoc-type` 
through `:inherit` so they track customizations to `font-lock-comment-face` / 
`font-lock-doc-face`.
 * Expand `adoc-mode` support: cover all 37 faces, give title levels distinct 
per-level colors with optional scaling via `zenburn-scale-outline-headlines`, 
differentiate `adoc-meta-face` from `adoc-meta-hide-face`, and fix 
`adoc-emphasis-face` to render italic instead of bold.
 
diff --git a/zenburn-theme.el b/zenburn-theme.el
index 650f7b726b..31069dd24b 100644
--- a/zenburn-theme.el
+++ b/zenburn-theme.el
@@ -66,20 +66,23 @@ for the list of semantic names that ship with the theme."
           :value-type (choice (string :tag "Hex")
                               (symbol :tag "Palette name"))))
 
-(defvar zenburn-use-variable-pitch nil
-  "When non-nil, use variable pitch face for some headings and titles.")
-
-(defvar zenburn-scale-org-headlines nil
-  "Whether `org-mode' headlines should be scaled.")
+(defcustom zenburn-use-variable-pitch nil
+  "When non-nil, use variable pitch face for some headings and titles."
+  :type 'boolean
+  :safe #'booleanp
+  :group 'zenburn-theme)
 
-(defvar zenburn-scale-outline-headlines nil
-  "Whether `outline-mode' headlines should be scaled.")
+(defcustom zenburn-scale-org-headlines nil
+  "Whether `org-mode' headlines should be scaled."
+  :type 'boolean
+  :safe #'booleanp
+  :group 'zenburn-theme)
 
-(defcustom zenburn-height-minus-1 0.8
-  "Font size -1."
-  :type 'number
-  :group 'zenburn-theme
-  :package-version '(zenburn . "2.6"))
+(defcustom zenburn-scale-outline-headlines nil
+  "Whether `outline-mode' headlines should be scaled."
+  :type 'boolean
+  :safe #'booleanp
+  :group 'zenburn-theme)
 
 (defcustom zenburn-height-plus-1 1.1
   "Font size +1."

Reply via email to