summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeschli <jeschli@gmail.com>2019-09-12 03:22:20 +0000
committerjeschli <jeschli@gmail.com>2019-09-12 03:22:20 +0000
commitfcb3a3985f1512913f8182a33c73311227f57cb8 (patch)
tree7aeb2302f677589bdf06129226c6b06a98a571a7
parentf6d2562043ce83497791eca8c521bba056244c37 (diff)
j emacs: add keybindings to switch dark and light customized themes
-rw-r--r--jeschli/2configs/emacs.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/jeschli/2configs/emacs.nix b/jeschli/2configs/emacs.nix
index c0edfcc6c..8bc78d18f 100644
--- a/jeschli/2configs/emacs.nix
+++ b/jeschli/2configs/emacs.nix
@@ -75,6 +75,26 @@ let
theme = ''
(load-theme 'monokai-alt t)
+ (load-theme 'whiteboard t)
+
+ (defun mh/load-whiteboard-theme ()
+ "load whiteboard theme"
+ (interactive)
+ (message "whiteboard loaded")
+ (disable-theme 'monokai-alt)
+ (enable-theme 'whiteboard)
+ )
+
+ (defun mh/load-monokai-theme ()
+ "load monokai theme"
+ (interactive)
+ (message "monokai loaded")
+ (disable-theme 'whiteboard)
+ (enable-theme 'monokai-alt)
+ )
+
+ (global-set-key "\C-ctw" 'mh/load-whiteboard-theme)
+ (global-set-key "\C-ctm" 'mh/load-monokai-theme)
'';
recentFiles = ''