projects
/
~bandali
/
configs
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
emacs: make my theme change functions more robust
[~bandali/configs]
/
.emacs.d
/
init.el
diff --git
a/.emacs.d/init.el
b/.emacs.d/init.el
index
e709f70
..
0d2c850
100644
(file)
--- a/
.emacs.d/init.el
+++ b/
.emacs.d/init.el
@@
-1609,7
+1609,8
@@
This function is intended for use with `ivy-ignore-buffers'."
(interactive)
(mapc #'disable-theme custom-enabled-themes)
(load-theme 'tangomod t)
(interactive)
(mapc #'disable-theme custom-enabled-themes)
(load-theme 'tangomod t)
- (sml/apply-theme 'tangomod)
+ (when (featurep 'smart-mode-line)
+ (sml/apply-theme 'tangomod))
(font-lock-remove-keywords
'org-mode b/org-mode-font-lock-keywords)
(when (featurep 'erc-hl-nicks)
(font-lock-remove-keywords
'org-mode b/org-mode-font-lock-keywords)
(when (featurep 'erc-hl-nicks)
@@
-1622,7
+1623,8
@@
This function is intended for use with `ivy-ignore-buffers'."
(interactive)
(mapc #'disable-theme custom-enabled-themes)
(load-theme 'doom-one t)
(interactive)
(mapc #'disable-theme custom-enabled-themes)
(load-theme 'doom-one t)
- (sml/apply-theme 'automatic)
+ (when (featurep 'smart-mode-line)
+ (sml/apply-theme 'automatic))
(font-lock-add-keywords
'org-mode b/org-mode-font-lock-keywords t)
(when (featurep 'erc-hl-nicks)
(font-lock-add-keywords
'org-mode b/org-mode-font-lock-keywords t)
(when (featurep 'erc-hl-nicks)