aboutsummaryrefslogtreecommitdiff
path: root/doom.d/config.org
diff options
context:
space:
mode:
authororeodave <aryadevchavali1@gmail.com>2019-08-27 17:21:05 +0100
committeroreodave <aryadevchavali1@gmail.com>2019-08-27 17:21:05 +0100
commit0e3b866871bb2d6efd451bdba4720ec2adc8df1c (patch)
tree1a1733b1fa14a0a167cdfae2f85d7c0b17cc7cd8 /doom.d/config.org
parentc8ec0bf7af39ef694788fc84dc47dc1c97755b7e (diff)
downloaddotfiles-0e3b866871bb2d6efd451bdba4720ec2adc8df1c.tar.gz
dotfiles-0e3b866871bb2d6efd451bdba4720ec2adc8df1c.tar.bz2
dotfiles-0e3b866871bb2d6efd451bdba4720ec2adc8df1c.zip
~ 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
Diffstat (limited to 'doom.d/config.org')
-rw-r--r--doom.d/config.org27
1 files changed, 21 insertions, 6 deletions
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!
- '<SPC>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!