summaryrefslogtreecommitdiffstats
path: root/jeschli/2configs
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
commit6c19ffa8d5d06ea67fe87595131e2485f9d8e769 (patch)
treeac83f8b8da332fabd564fa29c674faf96d2e1748 /jeschli/2configs
parente7f2237eb56fd924e0c5183366846c6007ba460e (diff)
j emacs: add keybindings to switch dark and light customized themes
Diffstat (limited to 'jeschli/2configs')
-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 c0edfcc..8bc78d1 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 = ''