Add key-bindings for switching between themes
This commit is contained in:
parent
9dcfd5e826
commit
4c31b4888d
9
init.el
9
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.
|
||||
;; --------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user