diff options
author | jeschli <jeschli@gmail.com> | 2019-09-12 03:22:20 +0000 |
---|---|---|
committer | jeschli <jeschli@gmail.com> | 2019-09-12 03:22:20 +0000 |
commit | fcb3a3985f1512913f8182a33c73311227f57cb8 (patch) | |
tree | 7aeb2302f677589bdf06129226c6b06a98a571a7 /jeschli | |
parent | f6d2562043ce83497791eca8c521bba056244c37 (diff) |
j emacs: add keybindings to switch dark and light customized themes
Diffstat (limited to 'jeschli')
-rw-r--r-- | jeschli/2configs/emacs.nix | 20 |
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 = '' |