From 4c31b4888df703a5fbb4f835ecff05729b777bac Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sun, 27 Aug 2017 15:47:40 +0100 Subject: [PATCH] Add key-bindings for switching between themes --- init.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/init.el b/init.el index 6270884..06980dd 100644 --- a/init.el +++ b/init.el @@ -52,10 +52,19 @@ ;; Theme -------------------------------------------------------------------- + ;; Add the necessary paths. (add-to-list 'load-path "~/.emacs.d/themes/") (add-to-list 'custom-theme-load-path "~/.emacs.d/themes/") + + ;; Load the dark theme by default. (load-theme 'havoc-dark t) ;; Load personal theme + ;; Setup key-bindings for switching between themes. + (global-set-key (kbd "C-x t l") '(lambda () (interactive) + (load-theme 'havoc-light t))) + (global-set-key (kbd "C-x t d") '(lambda () (interactive) + (load-theme 'havoc-dark t))) + ;; -------------------------------------------------------------------------- ;; Change file in which custom variable changes are saved. ;; --------------------------------------------------------------------------