Commit graph

2721 commits

Author SHA1 Message Date
Protesilaos Stavrou 022efb71c2
Append "-fg" to all nuanced foregrounds 2020-11-17 14:31:05 +02:00
Protesilaos Stavrou 8bafa467d5
Restructure palette alists 2020-11-17 12:25:00 +02:00
Protesilaos Stavrou a208b02020
Declare obsolete options and clean up section
Discussion: https://gitlab.com/protesilaos/modus-themes/-/issues/119
2020-11-17 10:26:40 +02:00
Protesilaos Stavrou 433fbb204b
Re-indent file 2020-11-16 18:25:51 +02:00
Protesilaos Stavrou 1f1f6fee0f
Add 'modus-themes-toggle' and extras
Discussion in the Modus themes' main repo:
https://gitlab.com/protesilaos/modus-themes/-/issues/119
2020-11-15 17:44:24 +02:00
Protesilaos Stavrou 0a36b11657
Fix deprecated symbol names 2020-11-15 15:12:38 +02:00
Protesilaos Stavrou 3f97a3f153
Add utilities for DIY users
Basically this defines the 'modus-themes-color' function that lets you
retrieve the colour value assigned to KEY.  The key is found in the
association list that contains each theme's colour palette.

Example for how to use this:

    (set-face-attribute 'cursor nil :background (modus-themes-color 'blue))

Ongoing discussion in the Modus themes' main repo:
https://gitlab.com/protesilaos/modus-themes/-/issues/119
2020-11-15 13:58:57 +02:00
Protesilaos Stavrou e00a59a2c8
Add initial version of unified customisations
For a detailed discussion see this issue in the main Modus themes
repository: https://gitlab.com/protesilaos/modus-themes/-/issues/119
2020-11-15 12:50:59 +02:00
Protesilaos Stavrou ddb3a513fd
Update modus-themes-core-theme docstring 2020-11-14 21:27:28 +02:00
Protesilaos Stavrou 3363730cc5
Fix time of alist evaluation and concomitant logic 2020-11-14 20:55:26 +02:00
Protesilaos Stavrou 5878251285
Expand palettes and render overrides obsolete
I have come to the realisation that we are facing a trade-off: either we
allow users to override the colour palette of each theme OR we let the
themes byte compile properly.  I am strongly in favour of the latter and
have thus rendered obsolete the relevant customisation option to
override the themes' colours.

Please note that this conclusion is predicated on the knowledge I have
accummulated thus far.  I may be wrong and I do not purport to be an
expert.  If someone can show me how to both byte compile the themes AND
offer a user-facing variable to override individual colours, then please
let me know---I am happy to follow your guidance.
2020-11-14 16:10:45 +02:00
Protesilaos Stavrou db56a5ecb2
Fix compilation and remove superfluous items 2020-11-14 15:48:46 +02:00
Protesilaos Stavrou b67c971e4e
Add custom face declarations 2020-11-11 22:47:46 +02:00
Protesilaos Stavrou 7e73cfca49
Car of alist must be a symbol (extend a3f7b4d) 2020-11-11 18:30:52 +02:00
Protesilaos Stavrou a3f7b4d386
Simplify macro expansion of alist cons cells 2020-11-11 18:30:30 +02:00
Protesilaos Stavrou 32d8f57cbe
Make theme files 'provide-theme' 2020-11-11 18:29:48 +02:00
Protesilaos Stavrou 7c8fe9769a
Avoid 'eval' inside macro expansion
Read the info node (evaluate the following):

          (info "(elisp) Eval")

      ... to get the value of a variable, while ‘eval’ works,
      ‘symbol-value’ is preferable ...
2020-11-11 18:09:34 +02:00
Protesilaos Stavrou 7bc6a6e620
Avoid loading macros when users run the code
Evaluate this:

         (info "(elisp) Compiling Macros")

    Byte-compiling a file also executes any ‘require’ calls at top-level
    in the file, so you can ensure that necessary macro definitions are
    available during compilation by requiring the files that define
    them (*note Named Features::).  To avoid loading the macro
    definition files when someone _runs_ the compiled program, write
    ‘eval-when-compile’ around the ‘require’ calls (*note Eval During
    Compile::).
2020-11-11 17:40:26 +02:00
Protesilaos Stavrou 04b8f5977a
Remove unused code 2020-11-11 13:16:48 +02:00
Protesilaos Stavrou 9ddae384b8
Remove unused macro for simplicity 2020-11-11 13:15:29 +02:00
Protesilaos Stavrou 06b9d14ab2
Early prototype 2020-11-11 11:58:35 +02:00