From 0e3b866871bb2d6efd451bdba4720ec2adc8df1c Mon Sep 17 00:00:00 2001 From: oreodave Date: Tue, 27 Aug 2019 17:21:05 +0100 Subject: ~ Instead of one theme, use many in a rotation Instead of just using doom-molokai, I can keep multiple themes in a list and rotate through them via a command. I used "a" as a prefix (a for aesthetics). Currently using solariszed as the default theme on load --- doom.d/config.org | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'doom.d/config.org') diff --git a/doom.d/config.org b/doom.d/config.org index cb17701..8d103e3 100644 --- a/doom.d/config.org +++ b/doom.d/config.org @@ -26,12 +26,6 @@ become my C one soon! - 'm' is right next to ',', so may as well use one tap instead of two - Projectile tags commands -* Theming -#+BEGIN_SRC emacs-lisp -(load-theme 'doom-molokai t) -#+END_SRC -I like monokai :) - * General keymap #+BEGIN_SRC emacs-lisp (map! @@ -104,6 +98,27 @@ Using new password holder (pass) to help with secure transactions. (setq dash-docs-docsets-path "~/.docsets") #+END_SRC My docsets are stored in .docsets for ease of use +*** Themes +#+BEGIN_SRC emacs-lisp +(setq oreodave/aesthetics/list '(doom-molokai doom-peacock doom-solarized-dark)) +(setq oreodave/aesthetics/index 2) +(load-theme (nth oreodave/aesthetics/index oreodave/aesthetics/list)) + +(defun oreodave/aesthetics/next-theme () + (interactive) + (cond ((= 2 oreodave/aesthetics/index) (setq oreodave/aesthetics/index 0)) + (t (setq oreodave/aesthetics/index (+ oreodave/aesthetics/index 1)))) + (load-theme (nth oreodave/aesthetics/index oreodave/aesthetics/list))) + +(map! + :leader + :prefix ("a" . "+aesthetics") + :desc "Load themes" "a" 'load-theme + :desc "Next default theme" "n" 'oreodave/aesthetics/next-theme + ) +#+END_SRC +- I want to have similar functionality to spacemacs: a way to switch themes + easily and quickly *** Frame management #+BEGIN_SRC emacs-lisp (map! -- cgit v1.2.3-13-gbd6f