~ 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 "<SPC>a" as a prefix (a
for aesthetics).

Currently using solariszed as the default theme on load
This commit is contained in:
oreodave
2019-08-27 17:21:05 +01:00
parent c8ec0bf7af
commit 0e3b866871

View File

@@ -26,12 +26,6 @@ become my C one soon!
- '<SPC>m' is right next to ',', so may as well use one tap instead of two - '<SPC>m' is right next to ',', so may as well use one tap instead of two
- Projectile tags commands - Projectile tags commands
* Theming
#+BEGIN_SRC emacs-lisp
(load-theme 'doom-molokai t)
#+END_SRC
I like monokai :)
* General keymap * General keymap
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(map! (map!
@@ -104,6 +98,27 @@ Using new password holder (pass) to help with secure transactions.
(setq dash-docs-docsets-path "~/.docsets") (setq dash-docs-docsets-path "~/.docsets")
#+END_SRC #+END_SRC
My docsets are stored in .docsets for ease of use 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 *** Frame management
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(map! (map!