Browse Source

Make the new mode-line-format opt-in

flycheck-not-required 2.1
Nicolas Petton 5 years ago
parent
commit
809379d005
Signed by: nico GPG Key ID: 233587A47C207910
2 changed files with 6 additions and 13 deletions
  1. +1
    -2
      README.md
  2. +5
    -11
      zerodark-theme.el

+ 1
- 2
README.md View File

@ -28,8 +28,7 @@ The mode-line can use more contrasted colors, with
### Mode-line format (optional)
When `zerodark-use-zerodark-mode-line-format` is `non-nil` (the default), a
custom mode-line-format is used:
Evaluate `zerodark-setup-modeline-format` to enable the custom mode-line-format:
![Screenshot mode-line-format](screenshot-mode-line-format.png)


+ 5
- 11
zerodark-theme.el View File

@ -5,7 +5,7 @@
;; Author: Nicolas Petton <nicolas@petton.fr>
;; Keywords: themes
;; URL: https://github.com/NicolasPetton/zerodark-theme
;; Version: 2.0
;; Version: 2.1
;; Package: zerodark-theme
;; Package-Requires: ((s "1.9.0") (all-the-icons "2.0.0"))
@ -19,7 +19,10 @@
;;; Commentary:
;;
;; A dark theme inspired from One Dark and Niflheim
;; A dark theme inspired from One Dark and Niflheim.
;;
;; An optional mode-line format can be enabled with
;; `zerodark-setup-modeline-format'.
;;
;;; Code:
@ -44,11 +47,6 @@
:type 'boolean
:group 'zerodark)
(defcustom zerodark-use-zerodark-mode-line-format t
"When non-nil, use the zerodark mode-line format."
:type 'boolean
:group 'zerodark)
(defvar zerodark-modeline-position ":%l:%c %p "
"Mode line construct for displaying the position in the buffer.")
@ -583,10 +581,6 @@
(add-to-list 'custom-theme-load-path
(file-name-as-directory (file-name-directory load-file-name))))
;;;###autoload
(when zerodark-use-zerodark-mode-line-format
(zerodark-setup-modeline-format))
(provide-theme 'zerodark)
;; Local Variables:


Loading…
Cancel
Save