aboutsummaryrefslogtreecommitdiffstats
path: root/modules/init-theme.el
blob: 848757e921c1f9d9b7e376859f6f714f4eaaf485 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
;;; init-theme.el --- .Emacs Configuration -*- lexical-binding: t -*-
;;; Commentary:
;;

;;; Code:
(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
  (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))

  ;; Invoke customcolors
  (customcolors)
  )

(provide 'init-theme)

;;; init-theme.el ends here