aboutsummaryrefslogtreecommitdiffstats
path: root/modules/init-theme.el
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-09-15 16:35:04 -0500
committerJesús <heckyel@hyperbola.info>2019-09-15 16:35:04 -0500
commit7fd29e9a60faeeb2804e22a362342580044bcd6c (patch)
tree5606385b6602df4c6f6dac152f645f528c9cf37e /modules/init-theme.el
parentebf8bb77cb30226fc9d31a9cc6676de600500c01 (diff)
downloademacs-personal-7fd29e9a60faeeb2804e22a362342580044bcd6c.tar.lz
emacs-personal-7fd29e9a60faeeb2804e22a362342580044bcd6c.tar.xz
emacs-personal-7fd29e9a60faeeb2804e22a362342580044bcd6c.zip
remove sublime-themes to doom-themes
Diffstat (limited to 'modules/init-theme.el')
-rw-r--r--modules/init-theme.el46
1 files changed, 39 insertions, 7 deletions
diff --git a/modules/init-theme.el b/modules/init-theme.el
index 28dec12..848757e 100644
--- a/modules/init-theme.el
+++ b/modules/init-theme.el
@@ -3,15 +3,47 @@
;;
;;; Code:
-(use-package sublime-themes
+(use-package doom-themes
+ :pin "MELPA"
+ :ensure t
+ :bind
+ ("C-x t d" . dark-theme)
+ ("C-x t l" . light-theme)
+
+ :init
+ (defun light-theme ()
+ "Activate light colortheme"
+ (interactive)
+ (load-theme 'doom-one-light)
+ (delete-selection-mode 1)
+ )
+
+ (defun dark-theme ()
+ "Activate dark colortheme"
+ (interactive)
+ (load-theme 'doom-molokai)
+ (delete-selection-mode 1)
+ ;; Invoke customcolors
+ (customcolors)
+ )
+ ;; Invoke theme
+ (load-theme 'doom-molokai t)
+
:config
- (load-theme 'spolsky t))
+ (defun customcolors ()
+ "Simple customcolors for theme."
+ (set-cursor-color "#268bd2")
+ (set-face-background 'highlight "#268bd2")
+
+ ;; Fix linum current-line highlight
+ (defface my-linum-hl
+ '((t :background "gray20" :foreground "gold"))
+ "Face for the currently active Line number"
+ :group 'linum))
-;; Fix linum current-line highlight. Doesn't looks good with this theme
-(defface my-linum-hl
- '((t :background "gray30" :foreground "gold"))
- "Face for the currently active Line number"
- :group 'linum)
+ ;; Invoke customcolors
+ (customcolors)
+ )
(provide 'init-theme)