1 ;;; bandali-theme.el --- bandali's custom theme setup -*- lexical-binding: t; -*-
3 ;; Copyright (C) 2018-2020 Amin Bandali
5 ;; Author: Amin Bandali <bandali@gnu.org>
8 ;; This program is free software; you can redistribute it and/or modify
9 ;; it under the terms of the GNU General Public License as published by
10 ;; the Free Software Foundation, either version 3 of the License, or
11 ;; (at your option) any later version.
13 ;; This program is distributed in the hope that it will be useful,
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ;; GNU General Public License for more details.
18 ;; You should have received a copy of the GNU General Public License
19 ;; along with this program. If not, see <https://www.gnu.org/licenses/>.
23 ;; My custom theme setup.
27 (use-package refinery-theme
30 (load-theme 'refinery t
))
32 (use-package smart-mode-line
33 :commands
(sml/apply-theme
)
36 ;; thanks, but no thnaks; don't make fixed-width fills.
37 (defun sml/fill-for-buffer-identification
() "")
38 (setq sml
/theme
'respectful
)
40 (smart-mode-line-enable))
44 :config
(minions-mode))
46 (defvar b
/org-mode-font-lock-keywords
47 '(("[ \t]*\\(#\\+\\(BEGIN\\|END\\|begin\\|end\\)_\\(\\S-+\\)\\)[ \t]*\\([^\n:]*\\)"
48 (1 '(:foreground
"#5a5b5a" :background
"#292b2b") t
) ; directive
49 (3 '(:foreground
"#81a2be" :background
"#292b2b") t
) ; kind
50 (4 '(:foreground
"#c5c8c6") t
))) ; title
51 "For use with the `doom-tomorrow-night' theme.")
54 (declare-function exwm-systemtray--refresh
"exwm-systemtray")
55 (declare-function erc-hl-nicks-reset-face-table
"erc-hl-nicks"))
58 "Enable my favourite light theme."
60 (mapc #'disable-theme custom-enabled-themes
)
61 (load-theme 'refinery t
)
62 (when (featurep 'smart-mode-line
)
63 (sml/apply-theme
'bandali
))
64 (font-lock-remove-keywords
65 'org-mode b
/org-mode-font-lock-keywords
)
66 (when (featurep 'erc-hl-nicks
)
67 (erc-hl-nicks-reset-face-table))
68 (when (featurep 'exwm-systemtray
)
69 (exwm-systemtray--refresh)))
71 (defun b/lights-off
()
74 (mapc #'disable-theme custom-enabled-themes
)
75 (load-theme 'tango-dark t
)
76 (when (featurep 'smart-mode-line
)
77 (sml/apply-theme
'automatic
))
78 (font-lock-add-keywords
79 'org-mode b
/org-mode-font-lock-keywords t
)
80 (when (featurep 'erc-hl-nicks
)
81 (erc-hl-nicks-reset-face-table))
82 (when (featurep 'exwm-systemtray
)
83 (exwm-systemtray--refresh)))
86 ("C-c t d" . b
/lights-off
)
87 ("C-c t l" . b
/lights-on
))
89 (provide 'bandali-theme
)
90 ;;; bandali-theme.el ends here