From fcb3a3985f1512913f8182a33c73311227f57cb8 Mon Sep 17 00:00:00 2001 From: jeschli Date: Thu, 12 Sep 2019 03:22:20 +0000 Subject: j emacs: add keybindings to switch dark and light customized themes --- jeschli/2configs/emacs.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'jeschli/2configs/emacs.nix') 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 = '' -- cgit v1.2.3