use package helm-themes for easy switching between themes

This commit is contained in:
Łukasz Pankowski 2017-11-19 00:18:31 +01:00
parent 20c519350e
commit f73c09e2ba

View File

@ -213,6 +213,15 @@ Argument FRAMES has the same meaning as for `set-frame-font'"
:ensure nil :ensure nil
:defer) :defer)
;; easy switching between themes
(use-package helm-themes
:ensure nil
:bind
(("C-c T" . helm-themes))
:config
;; need to update powerline after changing theme
(advice-add 'helm-themes :after #'powerline-reset))
(defun my-make-frame-function(frame) (defun my-make-frame-function(frame)
(if (not (featurep 'powerline)) (if (not (featurep 'powerline))
(powerline-center-theme))) (powerline-center-theme)))