Commit Graph

25 Commits

Author SHA1 Message Date
044a1a5f2b Drop Emacs 26.x support
Emacs 27.x has been the stable version of Emacs for nearly a year, and
introduces a litany of bugfixes, performance, and quality-of-life
improvements that significantly reduce Doom's maintenance burden (like
XDG support, early-init.el, image manipulation without imagemagick, a
native JSON library, harfbuzz support, pdumper, and others).

With so many big changes on Doom's horizon, I like having one less (big)
thing to worry about.

Also reverts bb677cf7a (#5232) as it is no longer needed.
2021-07-06 02:31:52 -04:00
cebbd76f3d Revert to 'user theme
Trying to get 'doom to behave like 'user is too much trouble and causes
too many problems. The magic around 'user is too deeply woven into
custom.el. The whole custom.el fiasco needs to be dealt with another
way.

Fixes #5000
Fixes #5009
2021-05-09 20:50:23 -04:00
10f9ec44a0 Revert "Convert custom-{,theme-}set-faces! to functions"
This reverts commit cab8f03a51.

Urg, they did have to be macros, otherwise arguments are evaluated
immediately. Note to self, stop committing things after midnight.

Fixes #5015
Closes #5016
2021-05-09 12:25:19 -04:00
cab8f03a51 Convert custom-{,theme-}set-faces! to functions
They didn't need to be macros.
2021-05-09 01:19:35 -04:00
f3c496d295 Fix #5009: custom-{,theme-}set-faces\! at startup
An erroneous check preventing these macros from taking effect any other
time but before your doom-theme has loaded.
2021-05-08 13:53:55 -04:00
1c549f21d6 Fix custom-set-faces\! & custom-theme-set-faces\! 2021-05-08 02:32:26 -04:00
f989bf60f0 Rewrite how themes are loaded, and fonts reloaded
A follow-up to 578dddd, which wasn't sufficient.

Fixes #5000 (again)
2021-05-08 00:42:06 -04:00
e2a11d24fd core: minor refactors and comment revisions 2021-05-06 18:36:32 -04:00
21b8af1ce1 Rewrite doom/reload-theme to reload active themes
Now reloads all active themes, rather than just the primary one.
2021-05-03 00:17:16 -04:00
969e6486f6 Apply customized faces sooner 2020-11-14 13:57:34 -05:00
95eb2989dc Minimize custom-set-faces! clobbering doom-load-theme-hook
Evaluating custom-set-faces! calls would add setter functions to
doom-load-theme-hook indefinitely, which could add up each time you M-x
doom/reload. Now it adds them to a subhook, which is reset whenever Doom
is reloaded.
2020-05-28 22:01:23 -04:00
169f9a6121 General, minor refactor & reformatting 2020-03-27 01:25:30 -04:00
e7019e4163 Fix custom-set-*-faces! macros in Emacs 27
custom--inhibit-theme-enable is non-nil by default in Emacs 27, which
inhibits uses of `custom-theme-set-faces` when modifying any theme other
than 'user.
2019-11-22 16:24:19 -05:00
fcbd91fc0d Fix custom-set-theme-faces! applying only to 'user 2019-11-22 13:17:10 -05:00
dca4015003 Fix void-variable themes error at startup
If lexical-binding isn't enabled (with ';; -*- lexical-binding: t; -*-'
at the top of your private config), custom-set-theme! and
custom-theme-set-faces! throw this error. Since these macros are
commonly used in user configs, where I can't police lexical-binding,
I've refactored it to not rely on it.
2019-10-27 14:27:29 -04:00
d79904d51f Fix custom-theme-set-faces with multiple themes 2019-10-27 14:21:52 -04:00
ee80ed680c Defer evaluation of custom-set-faces!'s arguments
...until the theme has first loaded.

You'll need to set `doom-theme` to nil if you want to use this macro
without a theme!
2019-10-24 19:43:10 -04:00
5f7add8360 Update doom/reload-{theme,font}
To reflect changes introduced in 17174e143
2019-09-20 19:52:55 -04:00
f23a833f31 Fix the multi-face form of custom-set-faces! 2019-09-15 02:09:58 +10:00
eb0ae8622c Fix file paths in comment headings 2019-08-06 14:45:55 -04:00
a354bba261 Appease byte-compiler-san-chan-sensei-sama-chama
Praise be.
2019-07-28 16:10:53 +02:00
3330501af6 Remove examples in custom-*set-faces!
They're already in docs/api.org, which helpful buffers will display
alongside a function/macro's documentation.
2019-07-28 16:10:53 +02:00
529f8d7e7a Fix custom-theme-set-faces!
The body was still quoted from when it was a macro.
2019-07-28 16:10:53 +02:00
ecb655dc01 Add nested face support to custom-theme-set-faces!
And convert it and custom-set-faces! to functions because they didn't
need to be macros.
2019-07-26 03:12:06 +02:00
6f56b9f9d4 Add autoload/themes.el library 2019-07-23 14:31:00 +02:00