ui/modeline: add +light feature

This will one day replace the module.
This commit is contained in:
Henrik Lissner 2019-12-13 19:54:30 -05:00
parent fbe8d9d8ac
commit f236d27d51
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 491 additions and 10 deletions

View file

@ -1,6 +1,11 @@
;;; ui/modeline/config.el -*- lexical-binding: t; -*-
(when (featurep! +light)
(load! "+light"))
(use-package! doom-modeline
:unless (featurep! +light)
:hook (after-init . doom-modeline-mode)
:init
(unless after-init-time
@ -61,15 +66,14 @@
;; modified state, so force them to behave.
(defadvice! +modeline--inhibit-modification-hooks-a (orig-fn &rest args)
:around #'ws-butler-after-save
(with-silent-modifications (apply orig-fn args))))
(with-silent-modifications (apply orig-fn args)))
;;
;; Extensions
;;
;;; Extensions
(use-package! anzu
:after-call isearch-mode)
(use-package! anzu
:after-call isearch-mode)
(use-package! evil-anzu
:when (featurep! :editor evil)
:after-call evil-ex-start-search evil-ex-start-word-search evil-ex-search-activate-highlight)
(use-package! evil-anzu
:when (featurep! :editor evil)
:after-call evil-ex-start-search evil-ex-start-word-search evil-ex-search-activate-highlight))