Add key-bindings for switching between themes

This commit is contained in:
Wojciech Kozlowski 2017-08-27 15:47:40 +01:00
parent 9dcfd5e826
commit 4c31b4888d

View File

@ -52,10 +52,19 @@
;; Theme -------------------------------------------------------------------- ;; Theme --------------------------------------------------------------------
;; Add the necessary paths.
(add-to-list 'load-path "~/.emacs.d/themes/") (add-to-list 'load-path "~/.emacs.d/themes/")
(add-to-list 'custom-theme-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 (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. ;; Change file in which custom variable changes are saved.
;; -------------------------------------------------------------------------- ;; --------------------------------------------------------------------------