Commit Graph

59 Commits

Author SHA1 Message Date
Ellis Kenyo 0cc5d0b980 feat: add ansi-color faces 2024-04-21 16:28:02 +08:00
TEC 2b107c9357
Fix non-hex color check
Somehow I ended up making the final check a check /for/ hex colors...
2023-01-15 12:35:16 +08:00
TEC 51a2f8d18e
Style, checkdoc, and byte-compile improvements 2023-01-13 23:45:19 +08:00
TEC e541cf4366
Better resolve non-hex fg/bg colours 2023-01-13 23:22:44 +08:00
TEC 5089660a60
Normalise single-plist text property form
When trying engrave-faces in an Org buffer I noticed that sometimes it
seems a single plist can be returned, e.g. (:inherit org-block). This is
problematic as the processing method requires a list where each list
item is a text property form, which does not hold true in this case.

We can correct for this by checking to see if the obtained text-property
has the form (:keyword ...), and if so wrap it in a list.
2022-12-10 01:00:01 +08:00
TEC 005958481b
Add fixme note 2022-10-03 11:47:00 +08:00
TEC 41c5171470
Update copyright dates 2022-10-03 11:46:52 +08:00
TEC 6d2bcb72c0
No need to manually specify defcustom :group
Raised by Stefan Monnier
2022-08-23 09:15:10 +08:00
TEC 217d70b827
ef-preset-styles needs to come after ef-themes
Raised by Stefan Monnier
2022-08-23 09:11:37 +08:00
TEC fe356507ef
Move defcustoms all to the start 2022-08-22 21:09:27 +08:00
TEC 0dbe2e088f
Note colour form restriction in docs 2022-08-22 21:09:02 +08:00
Ellis Kenyo 94fbdb021f
fix: add more faces
Add a couple more faces needed for HTML export in ox-chameleon
2022-06-04 17:36:56 +08:00
TEC 246c3c5cda
Fix misplaced function docstring in macro 2022-06-03 23:07:33 +08:00
TEC fe29d9b593
Version 0.3.1 2022-05-13 00:41:51 +08:00
TEC 2628fd8936
fix: transform named colors into hex colors 2022-05-11 00:06:41 +08:00
TEC 531ea687e4
fix: don't set current-preset-style in get-theme 2022-05-08 23:38:57 +08:00
TEC 6626419e4e
Version 0.3 2022-05-08 17:46:22 +08:00
TEC 45a16e6e9d
Add the default theme's default face background 2022-05-08 17:46:22 +08:00
TEC f4d3af3887
Elaborate on face preset format in docstring 2022-05-08 03:02:01 +08:00
TEC e857ef72ed
Redraw display after switching back to orig theme 2022-05-08 03:02:01 +08:00
TEC 7bb7f46e22
Reinterpret t theme as current theme 2022-05-08 03:02:01 +08:00
TEC 32fb760ca8
Don't record height/strike-through of default face 2022-05-08 03:02:01 +08:00
TEC d3a8a55674
Update macro-generated interactive specs 2022-05-08 03:02:01 +08:00
TEC 6fa12694e6
Rename default theme shorts and slugs 2022-05-08 01:19:42 +08:00
TEC 571d60774c
Reflow a docstring 2022-05-08 01:10:52 +08:00
TEC 9ef6c83553
Variable declaration rearrangement 2022-05-08 01:03:52 +08:00
TEC 4a0d16715a
Themes support 2022-05-08 01:02:55 +08:00
TEC 0ff0251187
Add ability to log face preset misses 2022-05-08 00:16:44 +08:00
TEC 85ddcdb516
Refactor ef-define-backend and ef-faces-file 2022-05-07 21:20:49 +08:00
TEC a6663d2dba
Don't try to get attributes of non-existant faces 2021-09-18 19:45:03 +08:00
TEC 32a95110bb
subr-x should only be needed at compile time 2021-09-16 03:20:58 +08:00
TEC 6b507611ee
Reduce the public API of engrave-faces
Private (--) symbols have not been used as much as they should have.
2021-09-07 21:37:25 +08:00
TEC 6b8261d9d4
Improve autoload statements
Having ;;;###autoload above the macro call caused the whole macro
expansion to be inlined! That's not very nice. There may be a better
solution long-term, but for now just crafting targeted autoload
statements is an improvement.
2021-09-07 21:27:48 +08:00
TEC 02088cc9b3
Version 0.2 2021-09-06 04:16:06 +08:00
TEC f18636f86f
Move style matching logic to core 2021-09-06 04:03:51 +08:00
TEC 95d25d45b1
minor refactor: face extraction from text property
Use lexical scope when evaluating.
2021-08-31 12:31:50 +08:00
TEC fdfaf141ed
Set the :group in defcustom statements 2021-08-31 12:21:54 +08:00
TEC 8b5e1fc45f
Move copyright to the FSF 2021-08-31 12:21:20 +08:00
TEC 8bbaaf8533
Missing subr-x requirement 2021-08-16 23:44:05 +08:00
TEC 97c9ad784a
When style is missing attribute, don't check face
Otherwise you can get a weird mix of properties.
2021-07-24 12:35:47 +08:00
TEC 2fee4f736a
Create engrave-faces-BACKEND-file command 2021-07-24 12:35:19 +08:00
TEC 1d73b8ed7b
Fix inaccurate comments 2021-07-10 04:07:38 +08:00
TEC 7fc664a4f3
Add interactive commands for backends 2021-07-09 21:02:47 +08:00
TEC 3b3dda6dd2
Improve docstrings and add some defcustoms 2021-07-09 21:02:11 +08:00
TEC ccebbdda0c
Add the org-block face to the preset, improve doc 2021-06-04 01:09:40 +08:00
TEC e9a9b37453
More face inheritance form edge cases
I /think/ it should be all sorted now.
2021-06-04 01:08:48 +08:00
TEC d4b95cebdc
Replace apply append with mapcan 2021-06-04 01:06:11 +08:00
TEC b6d31d8ca0
Account for multiple inherited faces 2021-05-01 00:01:05 +08:00
TEC 0cc9159956
No longer set default face information separately
This is now possible thanks to the earlier re-implementation of face
inheritance.
2021-04-08 03:05:42 +08:00
TEC c2ad032e38
Allow .-merge-attributes to work with single face
Instead of only accepting a list of faces.
2021-03-28 19:54:22 +08:00