├── .gitignore
├── LICENSE
├── cloudy-day.png
├── cloudy-night.png
├── est.el
└── starry-night.png
/.gitignore:
--------------------------------------------------------------------------------
1 | *~
2 | *.elc
3 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/cloudy-day.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jyp/emacs-semantics-theming/e3278a9723d6e72cf9301ceb3a227dcdd6e3385e/cloudy-day.png
--------------------------------------------------------------------------------
/cloudy-night.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jyp/emacs-semantics-theming/e3278a9723d6e72cf9301ceb3a227dcdd6e3385e/cloudy-night.png
--------------------------------------------------------------------------------
/est.el:
--------------------------------------------------------------------------------
1 | ;;; est --- Foundation for semantic themes -*- lexical-binding: t -*-
2 | ;; Copyright: FSF
3 |
4 | ;; Author: Jean-Philippe Bernardy
5 | ;; Maintainer: Jean-Philippe Bernardy
6 | ;; URL: https://github.com/jyp/emacs-semantics-theming
7 | ;; Created: January 2021
8 | ;; Keywords: theming
9 | ;; Package-Requires: ((emacs "26") (dash "2.17.0"))
10 | ;; Version: 1
11 |
12 | ;; This file is free software; you can redistribute it and/or modify
13 | ;; it under the terms of the GNU General Public License as published by
14 | ;; the Free Software Foundation; either version 3, or (at your option)
15 | ;; any later version.
16 |
17 | ;; This file is distributed in the hope that it will be useful,
18 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 | ;; GNU General Public License for more details.
21 |
22 | ;; You should have received a copy of the GNU General Public License
23 | ;; along with GNU Emacs; see the file COPYING. If not, write to
24 | ;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
25 | ;; Boston, MA 02110-1301, USA.
26 |
27 | ;;; Commentary:
28 |
29 | ;; This file attempts to establish an Emacs Semantically-sound
30 | ;; Theming foundation. The goal is to provide a visually pleasant and
31 | ;; semantically coherent meta-theme, which is easy to customize (with
32 | ;; as little as a palette of six colors).
33 | ;;
34 | ;; This a achieved through a number of articulated parts:
35 | ;;
36 | ;; - a small layer of customisation on top of standard Emacs
37 | ;; customisation. 1. We can record customs are belonging to a set
38 | ;; which must be re-evaluated. This means that a customs can depend on
39 | ;; each others (possibly in a long chain of dependencies.) 2. Instead
40 | ;; of customizing faces directly, we can customize their
41 | ;; *specs*. 3. `est-reevaluate' re-evaluates all the special customs,
42 | ;; including face specs, and reapply them to faces.
43 | ;;
44 | ;; - a small set of face(specs) which are assigned a meaning (use
45 | ;; customize-apropos-faces est- for a list). However, these
46 | ;; face(specs) are defined using the above customization system, which
47 | ;; means that it's often better to customize them indirectly, by
48 | ;; customizing the variables (colors) which occur in their spec
49 | ;; standard value. The default for these faces are are meant to define
50 | ;; a visually coherent set of faces.
51 | ;; Besides, sometimes standard Emacs faces are incorporated in the set
52 | ;; (eg. `shadow') --- and in this case their specs
53 | ;; are customised using the above mechanism.
54 | ;;
55 | ;; - a theme (`est-style') which defines a large number of (regular)
56 | ;; faces as inheriting those from the above set. This means that it
57 | ;; suffices to customize the small set (via customizing an even
58 | ;; smaller set of variables).
59 | ;;
60 | ;; - a set of examples configurations. They configure a minimal
61 | ;; palette of six colors, eventually theming everything.
62 |
63 |
64 | ;;; Code:
65 |
66 | (require 'color)
67 | (require 'dash)
68 |
69 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
70 | ;; Customisation infrastructure
71 |
72 | (defgroup highlight-indentation nil
73 | "Semantic Theming."
74 | :prefix "est-"
75 | :group 'faces)
76 |
77 | (defvar est-customs nil "List of customs to re-evaluate when applying est-theming.")
78 | (defvar est-faces nil "List of faces to reset when applying est-theming.")
79 | (setq est-customs nil
80 | est-faces nil)
81 |
82 | (defun est-set-standard-value (symbol pattern)
83 | "Set the standard value of SYMBOL to be PATTERN.
84 | PATTERN is an expression which `est-reevaluate' will evaluate and assign
85 | to SYMBOL. This function does not immediately set the value of
86 | SYMBOL. Both SYMBOL and PATTERN should be quoted."
87 | (put symbol 'standard-value (list (purecopy pattern))))
88 |
89 | (defmacro est-customize-variable (symbol pattern)
90 | "Set the standard value of SYMBOL to be PATTERN.
91 | PATTERN is an expression which `est-reevaluate' will evaluate and assign
92 | to SYMBOL. This function does not immediately set the value of
93 | SYMBOL. Neither SYMBOL or PATTERN should be quoted."
94 | `(est-set-standard-value ',symbol ',pattern))
95 |
96 | (defmacro est-defcustom (symbol standard docstring &rest args)
97 | "Define SYMBOL with STANDARD value and DOCSTRING, with ARGS.
98 | Also register SYMBOL for evaluation by `est-reevaluate'."
99 | (declare (doc-string 3) (debug (name body)))
100 | `(progn
101 | (push ',symbol est-customs)
102 | (defcustom ,symbol ,standard ,docstring :group 'est ,@args)))
103 |
104 | (defmacro est-stealcustom (file symbol standard)
105 | "Re-define the standard value for SYMBOL as STANDARD.
106 | Also register SYMBOL for evaluation by `est-reevaluate'. SYMBOL
107 | should be originally defined in FILE, together with its doc,
108 | groups, etc."
109 | (declare (doc-string 3) (debug (name body)))
110 | `(with-eval-after-load ,file
111 | (defvar ,symbol)
112 | (push ',symbol est-customs)
113 | (est-customize-variable ,symbol ,standard)
114 | (set ',symbol ,standard)))
115 |
116 | (eval-and-compile
117 | (defun est-spec-symbol (face-symbol)
118 | "Make a face-spec symbol from a FACE-SYMBOL."
119 | (intern (concat (symbol-name face-symbol) "-spec"))))
120 |
121 | (defmacro est-customize-face (face spec)
122 | "Set the standard spec of FACE to be SPEC.
123 | SPEC is a sexp which `est-reevaluate' will evaluate and assign
124 | to FACE This function does not immediately set the value of
125 | FACE. FACE should not be quoted."
126 | `(est-customize-variable ,(est-spec-symbol face) ,spec))
127 |
128 | (defmacro est-defface (face spec doc &rest args)
129 | "Declare FACE as a customizable face which defaults to the expression SPEC.
130 | This is similar to `defface', but SPEC is a s-expression which
131 | can depend on other customizable variables. The face spec is
132 | recomputed when `est-reevaluate' is called. FACE should not be
133 | quoted. Third argument DOC is the face documentation. See
134 | `defface' for the semantics of extra ARGS."
135 | (let ((spec-symbol (est-spec-symbol face)))
136 | `(progn
137 | (custom-declare-variable ',spec-symbol ',spec ,doc :group 'est :type 'sexp ,@args)
138 | (push ',spec-symbol est-customs)
139 | (push ',face est-faces))))
140 |
141 | (defmacro est-stealface (face-symbol spec)
142 | "Steal an existing FACE-SYMBOL by setting its SPEC to the given expression.
143 | Works similarly to `est-defface', but no documentation is needed."
144 | `(est-defface ,face-symbol ,spec (face-documentation ',face-symbol)))
145 |
146 | (defcustom est-reevaluate-hook nil
147 | "Hook run after `est-reevaluate'."
148 | :group 'est
149 | :type 'hook)
150 |
151 | (defvar est-init-complete nil "Is the initialisation complete?")
152 | (defun est-reevaluate ()
153 | "Re-evaluate `est-customs' and `est-faces'.
154 | These are variables and faces declared with `est-defface' and
155 | `est-defcustom'."
156 | (interactive)
157 | ;; FIXME: est-customs should really be sorted according to their
158 | ;; dependencies. But we don't have them. In general it depends on
159 | ;; the free variables in the custom standard values. For now, we do the
160 | ;; simple thing of assuming that they are declared in order of
161 | ;; dependencies.
162 | (when est-init-complete ; run last in case several configurations happen during init time.
163 | (dolist (symbol (reverse est-customs))
164 | (custom-reevaluate-setting symbol))
165 | (dolist (face-symbol est-faces)
166 | ;; est- faces are not controlled by custom. est- face specs are. So override the faces here.
167 | (face-spec-set face-symbol (purecopy (eval (est-spec-symbol face-symbol))) 'face-defface-spec))
168 | ;; sometimes emacs 29.1 does not perform the actual change until a new frame is opened.
169 | (run-hooks 'est-reevaluate-hook)))
170 |
171 | (add-hook 'after-init-hook
172 | (defun est-init-complete ()
173 | (setq est-init-complete t)
174 | (est-reevaluate)))
175 |
176 | ;;;;;;;;;;;;;;;;;;;;;;;;;;
177 | ;; Color manipulation
178 |
179 | (defcustom est-gamma 1.5
180 | "Gamma correction parameter for `est'.
181 | 2.2 is the standard value but for light palettes tends to yield
182 | too bright colors due to too accurate color addition."
183 | :group 'est :type 'float)
184 |
185 | (defun est-scale-color (scale col)
186 | "Multiply every entry in COL by SCALE."
187 | (--map (* scale it) col))
188 |
189 | (defun est-add-color (a b)
190 | "Add entries of A and B indexwise."
191 | (-zip-with '+ a b))
192 |
193 | (defun est-sub-color (a b)
194 | "Subtract entries of B from A indexwise."
195 | (-zip-with '- a b))
196 |
197 | (defun est-exp-gamma (x)
198 | "Apply gamma correction to X."
199 | (exp (* (log x) est-gamma)))
200 |
201 | (defun est-exp-inv-gamma (x)
202 | "Unapply gamma correction to X."
203 | (exp (/ (log x) est-gamma)))
204 |
205 | (defun est-clamp (components)
206 | "Make sure each of the COMPONENTS is in the [0,1] interval."
207 | (--map (max 0.0 (min 1.0 it)) components))
208 |
209 | (defun est-over-composite (base addition)
210 | "Composite of ADDITION over BASE.
211 | With premultiplied colors, without gamma correction."
212 | (let ((alpha (car addition)))
213 | (est-add-color (est-scale-color (- 1.0 alpha) base) addition)
214 | ))
215 |
216 | (defun est-what-under-composite (over addition)
217 | "What was under OVER before ADDITION was painted?"
218 | (let ((alpha (car addition)))
219 | (est-scale-color (/ 1.0 (- 1.0 alpha))
220 | (est-sub-color over addition))))
221 |
222 | (defun est-argb-to-hex (components)
223 | "Encode COMPONENTS in the (a r g b) format to hex name.
224 | Input is assumed to be alpha-premultiplied and gamma corrected."
225 | (pcase-let ((`(,alpha . ,rgb) components))
226 | (apply 'color-rgb-to-hex (-map 'est-exp-inv-gamma (est-clamp (est-scale-color (/ 1 alpha) rgb))))))
227 |
228 | (defun est-alpha-name (alpha name)
229 | "Decode a pair of ALPHA color NAME to (a r g b) format.
230 | Includes applying gamma and premultiply."
231 | (cons alpha (est-scale-color alpha (-map 'est-exp-gamma (color-name-to-rgb name)))))
232 |
233 | (defun est-paint-over (base alpha addition)
234 | "Paint ADDITION over BASE with opacity ALPHA.
235 | Inputs colors are names."
236 | (est-argb-to-hex
237 | (est-over-composite (est-alpha-name 1.0 base)
238 | (est-alpha-name alpha addition))))
239 |
240 | (defun est-scrape-paint (base alpha addition)
241 | "Recover what yielded BASE after painting ADDITION opacity ALPHA.
242 | Inputs colors are names."
243 | (est-argb-to-hex
244 | (est-what-under-composite (est-alpha-name 1.0 base)
245 | (est-alpha-name alpha addition))))
246 |
247 | (defun est-color-hue (name)
248 | "Get the hue of a color given by NAME."
249 | (pcase-let ((`(,_lightness ,a ,b)
250 | (apply 'color-srgb-to-lab (color-name-to-rgb name))))
251 | (atan a b)))
252 |
253 | (defun est-color-lightness (name)
254 | "Get the lightness of a color given by NAME."
255 | (car (apply 'color-srgb-to-lab (color-name-to-rgb name))))
256 |
257 | ;;;;;;;;;;;
258 | ;; Colors
259 |
260 |
261 | (defcustom est-color-fg-default "#3e4759"
262 | "Default foreground color." :type 'color :group 'est)
263 |
264 | (defcustom est-color-bg-default "#ffffff"
265 | "Default background color."
266 | :type 'color :group 'est)
267 |
268 | (defcustom est-color-fg-salient "#2056a2"
269 | "Color of persistent accents.
270 | This should be at least somewhat saturated, but of similar
271 | lightness as regular text. It is suitable for links and names
272 | which can be followed, such as directories, required elisp
273 | modules, etc." :type 'color :group 'est)
274 |
275 | (defcustom est-color-fg-popout "#00e0ff"
276 | "Accented color which should be easy to spot.
277 | It is used mostly to attract attention immediately relevant
278 | portions of the display, whose relevant state is transient.
279 | Typically this is achieved by used by simultaneously using
280 | different lightness than usual text and a saturated color.
281 | Transience can be as low as isearch matches, balanced parens or
282 | high TODOs, etc. Attention can be grabbed using a remarkable hue
283 | and high staturation." :type 'color :group 'est)
284 |
285 | (defcustom est-color-fg-critical "#FF2F00"
286 | "Color indicating that urgent attention is required.
287 | Not taking care of the issue will most likely lead to problems
288 | down the road: this is for critical problems, and can be
289 | indicated with extra strong, even disturbing contrast, saturation
290 | and a red hue." :type 'color :group 'est)
291 |
292 | (defcustom est-color-bg-subtle "#eef1f6"
293 | "A background color sublty different from the default.
294 | This can be used for slight emphasis, or to delineate areas, such
295 | as the region. This color can even be used exceptionally as
296 | foreground in case the text is not meant to be read, for example
297 | to display weak separators." :type 'color :group 'est)
298 |
299 | (defcustom est-color-bg-selected "#e5e9f0"
300 | "A background color which is notably different from the default.
301 | Still, it should be contrasting with all foreground colors to
302 | enable easy reading. It is used for to indicate selected menu
303 | items, or delinate areas with stronger emphasis." :type 'color
304 | :group 'est)
305 |
306 |
307 | (defcustom est-taint-vc-base "#0000FF"
308 | "A taint to indicate base stuff in version-control contexts.
309 | This is not used directly in faces, but blended with various background
310 | colors. So it is fine to use saturated bright colors here." :type 'color :group
311 | 'est)
312 |
313 | (defcustom est-taint-vc-third "#FFFF00"
314 | "A taint to indicate third-party stuff in version-control contexts.
315 | This is not used directly in faces, but blended with various background
316 | colors. So it is fine to use saturated bright colors here." :type 'color :group
317 | 'est)
318 |
319 | (defcustom est-taint-vc-added "#00FF00"
320 | "A taint to indicate added stuff in version-control contexts.
321 | This is not used directly in faces, but blended with various background
322 | colors. So it is fine to use saturated bright colors here." :type 'color :group
323 | 'est)
324 |
325 |
326 | (defcustom est-taint-vc-removed "#FF0000"
327 | "A taint to indicate removed stuff in version-control contexts.
328 | This is not used directly in faces, but blended with various background
329 | colors. So it is fine to use saturated bright colors here."
330 | :type 'color :group 'est)
331 |
332 | (est-defcustom
333 | est-is-dark-mode (< (est-color-lightness est-color-bg-default) 40)
334 | "Non-nil if this is this a dark background mode." :type 'boolean)
335 |
336 | (est-stealcustom 'pdf-view pdf-view-midnight-colors (cons est-color-fg-default est-color-bg-default))
337 |
338 | (est-defcustom est-accent-lightness (+ (* 0.6 (est-color-lightness est-color-fg-default))
339 | (* 0.4 (est-color-lightness est-color-bg-default)))
340 | "Lightness for highlight colors.
341 | Usually somewhat not as bright/contrasted as that of the default
342 | fg." :type 'float :group 'est)
343 |
344 | (defun est-color-lab (l a b)
345 | "Get a color name from position in the L A B space."
346 | (apply 'color-rgb-to-hex (est-clamp (color-lab-to-srgb l a b))))
347 |
348 | (defcustom est-accent-chroma 50 "Amount of chroma for accent colors." :type 'number :group 'est)
349 |
350 | (eval-and-compile ; because it is used in a defcustom; requiring a byte-compiled version of this package would error.
351 | (defun est-color-lch (lightness chroma hue)
352 | "Get a color name from position in the LIGHTNESS CHROMA HUE space."
353 | (est-color-lab lightness (* chroma (cos hue)) (* chroma (sin hue))))
354 | (defun est-accent-color-by-hue (hue)
355 | (est-color-lch est-accent-lightness est-accent-chroma hue)))
356 |
357 | (est-defcustom est-hue-fundamental (est-color-hue est-color-fg-popout) "Fundamental accent hue." :type 'float)
358 | (est-defcustom est-hue-complementary (+ est-hue-fundamental float-pi) "Complementary accent hue." :type 'float)
359 | (est-defcustom est-hue-analogous1 (+ est-hue-fundamental (/ float-pi 3)) "Analogous1 accent hue." :type 'float)
360 | (est-defcustom est-hue-analogous2 (- est-hue-fundamental (/ float-pi 3)) "Analogous2 accent hue." :type 'float)
361 | (est-defcustom est-hue-coanalogous1 (+ est-hue-complementary (/ float-pi 3)) "Coanalogous1 accent hue." :type 'float)
362 | (est-defcustom est-hue-coanalogous2 (- est-hue-complementary (/ float-pi 3)) "Coanalogous2 accent hue." :type 'float)
363 |
364 | (est-defface est-fg-complementary `((t :foreground ,(est-accent-color-by-hue est-hue-complementary))) "todo")
365 | (est-defface est-fg-analogous1 `((t :foreground ,(est-accent-color-by-hue est-hue-analogous1))) "todo")
366 | (est-defface est-fg-analogous2 `((t :foreground ,(est-accent-color-by-hue est-hue-analogous2))) "todo")
367 | (est-defface est-fg-coanalogous1 `((t :foreground ,(est-accent-color-by-hue est-hue-coanalogous1))) "todo")
368 | (est-defface est-fg-coanalogous2 `((t :foreground ,(est-accent-color-by-hue est-hue-coanalogous2))) "todo")
369 |
370 | ;;;;;;;;;;;;;;;;;;;;;;;
371 | ;; Hack against hacks
372 |
373 | ;; org-mode tries to be clever regarding foreground color. But it is not. Shut it down:
374 | (with-eval-after-load 'org
375 | (fset 'org-find-invisible-foreground (lambda () nil)))
376 |
377 | (est-stealcustom 'hi-lock hi-lock-face-defaults ;; The defaults have concrete (non-semantic) names (yellow, etc.)
378 | '("est-fg-analogous1" "est-fg-analogous2" "est-fg-coanalogous1" "est-fg-coanalogous2" "est-fg-complementary"))
379 | (est-stealcustom 'boon-hl boon-hl-face-defaults
380 | '(est-fg-analogous1 est-fg-analogous2 est-fg-coanalogous1 est-fg-coanalogous2 est-fg-complementary))
381 |
382 | ;;;;;;;;;;;;;;;;;;;;;;;;;
383 |
384 | ;; (est-defcustom est-color-fg-yellow (est-color-lch est-accent-lightness est-accent-chroma est-hue-yellow) "yellow fg color")
385 | ;; (est-defcustom est-color-fg-pink (est-color-lch est-accent-lightness est-accent-chroma est-hue-pink) "pink fg color")
386 | ;; (est-defcustom est-color-fg-teal (est-color-lch est-accent-lightness est-accent-chroma est-hue-teal) "teal fg color")
387 | ;; (est-defcustom est-color-fg-blue (est-color-lch est-accent-lightness est-accent-chroma est-hue-blue) "blue fg color")
388 | ;; (est-defcustom est-color-fg-green (est-color-lch est-accent-lightness est-accent-chroma est-hue-green) "green fg color")
389 | ;; (est-defcustom est-color-fg-violet (est-color-lch est-accent-lightness est-accent-chroma est-hue-violet) "violet fg color")
390 | ;; (est-defcustom est-color-fg-red (est-color-lch est-accent-lightness est-accent-chroma est-hue-red) "red fg color")
391 | ;; (est-defcustom est-color-fg-cyan (est-color-lch est-accent-lightness est-accent-chroma est-hue-cyan) "cyan fg color")
392 | ;; (est-defface est-fg-yellow `((t :foreground ,est-color-fg-yellow)) "yellow fg")
393 | ;; (est-defface est-fg-pink `((t :foreground ,est-color-fg-pink)) "pink fg")
394 | ;; (est-defface est-fg-teal `((t :foreground ,est-color-fg-teal)) "teal fg")
395 | ;; (est-defface est-fg-blue `((t :foreground ,est-color-fg-blue)) "blue fg")
396 | ;; (est-defface est-fg-green `((t :foreground ,est-color-fg-green)) "green fg")
397 | ;; (est-defface est-fg-violet `((t :foreground ,est-color-fg-violet)) "violet fg")
398 | ;; (est-defface est-fg-red `((t :foreground ,est-color-fg-red)) "red fg")
399 | ;; (est-defface est-fg-cyan `((t :foreground ,est-color-fg-cyan)) "cyan fg")
400 |
401 | (est-defcustom est-color-bg-elusive (est-paint-over est-color-bg-default 0.5 est-color-bg-subtle) "Background elusive." :type 'color)
402 | (est-defcustom est-color-bg-hilight1 (est-paint-over est-color-bg-default 0.15 est-color-fg-popout) "Background highlight 1st kind." :type 'color)
403 | (est-defcustom est-color-bg-hilight2 (est-paint-over est-color-bg-default 0.15 est-color-fg-salient) "Background highlight 2nd kind." :type 'color)
404 | (est-defcustom est-color-bg-selected-hilight1 (est-paint-over est-color-bg-selected 0.15 est-color-fg-popout) "Background selected highlight 1st kind." :type 'color)
405 | (est-defcustom est-color-bg-selected-hilight2 (est-paint-over est-color-bg-selected 0.15 est-color-fg-salient) "Background selected highlight 2nd kind." :type 'color)
406 | (est-defcustom est-color-fg-shadowed (est-paint-over est-color-fg-default 0.6 est-color-bg-default) "De-selected/disabled menu options." :type 'color)
407 | (est-defcustom est-color-fg-faded (est-paint-over est-color-fg-default 0.2 est-color-bg-default) "De-emphasized (comments, etc.)." :type 'color)
408 | (est-defcustom est-color-fg-emph (est-scrape-paint est-color-fg-default 0.2 est-color-bg-default) "Subtle emphasis foreground." :type 'color)
409 |
410 | (est-stealcustom 'hl-paren hl-paren-colors
411 | (list est-color-fg-salient
412 | (est-paint-over est-color-fg-salient 0.25 est-color-fg-emph)
413 | (est-paint-over est-color-fg-salient 0.5 est-color-fg-emph)
414 | (est-paint-over est-color-fg-salient 0.75 est-color-fg-emph)))
415 |
416 | ;;;;;;;;;;;;;;;
417 | ;; Faces
418 |
419 |
420 | (est-defface est-separator `((t :foreground ,est-color-bg-selected))
421 | "Face for separators (such as --------)")
422 |
423 | (est-defface est-choice `((t :background ,est-color-bg-selected :extend t))
424 | "Background face for the current selection.
425 | (in completions frameworks, but also magit, etc.) Not the region!")
426 |
427 | (est-defface est-highlight-1 `((t :background ,est-color-bg-hilight1))
428 | "Face for semi-transient highlights. The meaning is similar to
429 | `est-popout', but for backgrounds (when changing the foreground
430 | color is somehow inappropriate).")
431 |
432 | (est-defface est-highlight-2 `((t :background ,est-color-bg-hilight2))
433 | "Face for secondary highlights")
434 |
435 | (est-defface est-choice-highlight-1 `((t :background ,est-color-bg-selected-hilight1))
436 | "Face for semi-transient highlights over `est-choice'. The meaning is similar to
437 | `est-popout', but for backgrounds (when changing the foreground
438 | color is somehow inappropriate).")
439 |
440 | (est-defface est-choice-highlight-2 `((t :background ,est-color-bg-selected-hilight2))
441 | "Face for secondary highlights over `est-choice'")
442 |
443 | (est-defface est-critical `((t :foreground ,est-color-fg-critical))
444 | "Critical face is for information that requires immediate action.
445 | See also `est-color-fg-critical'.")
446 |
447 | (est-defface est-popout `((t :foreground ,est-color-fg-popout))
448 | "Popout face is used for information that needs attention.
449 | See also `est-color-fg-popout'.")
450 |
451 | (est-defface est-emph `((t :foreground ,est-color-fg-emph))
452 | "A mild emphasis face.
453 | By defaut the emphasis effect is achieved by using the
454 | `est-color-fg-emph' color, which is by default slightly more
455 | contrasted than the default color. This kind of emphasis
456 | corresponds roughly to the emphasis effect achieved using
457 | italics, in mainstream typsetting practice. But italics do not
458 | mesh well with monospace fonts.")
459 |
460 |
461 | (est-defface est-strong `((t :inherit (bold est-emph)))
462 | "A face with stronger emphasis than `est-emph'.
463 | Accordingly it is used more sparingly. By default the effect is
464 | achieved by using a bold weight together with a higher constrast
465 | (`est-color-fg-emph').")
466 |
467 | (est-defface est-salient `((t :foreground ,est-color-fg-salient))
468 | "Salient face is used for information of same urgency,
469 | but different nature than regular text. See also
470 | `est-color-fg-salient'.")
471 |
472 | (est-defface est-faded `((t :foreground ,est-color-fg-faded))
473 | "Faded face is for information that is less important.
474 | It is achieved by using the same hue as the default foreground
475 | color, but with a lesser contrast. It can be used for comments
476 | and secondary information.")
477 |
478 | (defface est-quoted `((t :inherit italic))
479 | "Face for quoted text, For instance `org-mode' quotes.")
480 |
481 | (est-defface est-subtle `((t :background ,est-color-bg-subtle))
482 | "Subtle face is used to suggest a physical area on the screen.
483 | See also `est-color-bg-subtle.'")
484 |
485 | (est-defface est-elusive `((t :background ,est-color-bg-elusive))
486 | "even more subltle face is used to suggest a physical area on the screen.
487 | See also `est-color-bg-elusive.'")
488 |
489 |
490 | (est-defface est-heading-0 `((t :height 1.5 :inherit est-heading)) "Face for page-level headings (titles)")
491 | (est-defface est-heading-1 `((t :height 1.3 :inherit est-heading)) "Face for level 1 headings")
492 | (est-defface est-heading-2 `((t :height 1.15 :inherit est-heading)) "Face for level 2 headings")
493 | (est-defface est-heading-3 `((t :height 1.1 :inherit est-heading)) "Face for level 3 headings")
494 | (est-defface est-heading `((t :inherit bold)) "Face for level 4 headings and below")
495 |
496 | (est-defface est-frame-title
497 | `((t :extend t :background ,est-color-fg-salient :weight bold :foreground ,est-color-bg-default :height 1.7 :box (:line-width 40 :color ,est-color-fg-salient)))
498 | "Frame title; presentations, etc.")
499 | (est-defface est-modeline-common
500 | `((t :overline ,est-color-fg-faded :height 0.95))
501 | "Face attributes common to mode-line and mode-line-inactive")
502 |
503 | (defcustom est-default-font-height 150 "Default font height." :type 'int :group 'est)
504 | ;; we cannot use actual font-spec objects because Emacs (29.0.90) has
505 | ;; a bug where the properties from the font spec leak into the face
506 | ;; spec.
507 | (defcustom est-fixed-pitch-font '(:family "MonoSpace") "Fixed-pitch (monospace) font family." :type 'string :group 'est)
508 | (defcustom est-variable-pitch-serif-font '(:family "Serif") "Serif font family." :type 'string :group 'est)
509 | (defcustom est-variable-pitch-font '(:family "Sans Serif") "Variable-pitch font family." :type 'string :group 'est)
510 | (defcustom est-fixed-pitch-serif-font '(:family "Monospace Serif") "Fixed-pitch (monospace) font family with serifs." :type 'string :group 'est)
511 | (est-defcustom est-default-font est-fixed-pitch-font "Default font family." :type 'string :group 'est)
512 |
513 | (est-defface est-invisible `((t :foreground ,est-color-bg-default)) "Face for invisible text")
514 |
515 | (est-stealface default `((t :foreground ,est-color-fg-default
516 | :background ,est-color-bg-default
517 | ,@est-default-font
518 | :height ,est-default-font-height)))
519 | ;; emacs default face cannot inherit from anything, so we must re-invent the wheel here.
520 | (est-stealface variable-pitch `((t ,@est-variable-pitch-font)))
521 | (est-stealface fixed-pitch `((t ,@est-fixed-pitch-font)))
522 | (est-stealface fixed-pitch-serif `((t ,@est-fixed-pitch-serif-font)))
523 | (est-defface est-serif `((t ,@est-variable-pitch-serif-font)) "Face for serif font")
524 | (defcustom est-italic-fallback-spec-alist
525 | '(("Cantarell" . ((t :family "Lato" :slant italic)))) ; :weight light
526 | ;; '(("Cantarell" . ((t :family "Roboto" :slant italic :height 0.95)))) ; :weight light
527 | ;; `(("Cantarell" . ((t :family "FiraGO" :weight semilight :slant italic))))
528 | "Alist mapping font families to their italic fallback spec."
529 | :type '(alist :key-type string :value-type sexp)
530 | :group 'est)
531 | (est-stealface italic (or (alist-get (plist-get est-default-font :family) est-italic-fallback-spec-alist nil nil #'string-equal) `((t :slant italic))))
532 |
533 | (est-stealface cursor `((t :background ,est-color-fg-default)))
534 | (est-stealface shadow `((t :foreground ,est-color-fg-shadowed)))
535 |
536 | (est-stealface ediff-current-diff-face-Ancestor `((t :extend t :background ,(est-paint-over est-color-bg-selected 0.1 est-taint-vc-base))))
537 | (est-stealface ediff-current-diff-face-A `((t :extend t :background ,(est-paint-over est-color-bg-selected 0.1 est-taint-vc-added))))
538 | (est-stealface ediff-current-diff-face-B `((t :extend t :background ,(est-paint-over est-color-bg-selected 0.1 est-taint-vc-removed))))
539 | (est-stealface ediff-current-diff-face-C `((t :extend t :background ,(est-paint-over est-color-bg-selected 0.1 est-taint-vc-third))))
540 | (est-stealface ediff-fine-diff-face-Ancestor `((t :background ,(est-paint-over est-color-bg-selected 0.2 est-taint-vc-base))))
541 | (est-stealface ediff-fine-diff-face-A `((t :background ,(est-paint-over est-color-bg-selected 0.2 est-taint-vc-added))))
542 | (est-stealface ediff-fine-diff-face-B `((t :background ,(est-paint-over est-color-bg-selected 0.2 est-taint-vc-removed))))
543 | (est-stealface ediff-fine-diff-face-C `((t :background ,(est-paint-over est-color-bg-selected 0.2 est-taint-vc-third))))
544 | (est-stealface ediff-odd-diff-face-Ancestor `((t :extend t :background ,(est-paint-over est-color-bg-subtle 0.1 est-taint-vc-base))))
545 | (est-stealface ediff-odd-diff-face-A `((t :extend t :background ,(est-paint-over est-color-bg-subtle 0.1 est-taint-vc-added))))
546 | (est-stealface ediff-odd-diff-face-B `((t :extend t :background ,(est-paint-over est-color-bg-subtle 0.1 est-taint-vc-removed))))
547 | (est-stealface ediff-odd-diff-face-C `((t :extend t :background ,(est-paint-over est-color-bg-subtle 0.1 est-taint-vc-third))))
548 | (est-stealface ediff-even-diff-face-Ancestor `((t :extend t :background ,(est-paint-over est-color-bg-default 0.1 est-taint-vc-base))))
549 | (est-stealface ediff-even-diff-face-A `((t :extend t :background ,(est-paint-over est-color-bg-default 0.1 est-taint-vc-added))))
550 | (est-stealface ediff-even-diff-face-B `((t :extend t :background ,(est-paint-over est-color-bg-default 0.1 est-taint-vc-removed))))
551 | (est-stealface ediff-even-diff-face-C `((t :extend t :background ,(est-paint-over est-color-bg-default 0.1 est-taint-vc-third))))
552 |
553 | ;; est-customs
554 | ;;;;;;;;;;;;;;;;;;;;;;
555 | ;; Styling theme
556 |
557 | (deftheme est-style)
558 | (put 'est-style 'theme-settings nil) ; reset so this file can be eval'ed several times (for development)
559 |
560 | (custom-theme-set-variables
561 | 'est-style
562 | '(org-fontify-done-headline nil) ;; does not work with changing size of headlines
563 | '(org-fontify-todo-headline nil) ;; does not work with changing size of headlines
564 | '(org-cycle-level-faces nil))
565 |
566 | (custom-theme-set-faces 'est-style
567 | '(est-magit-selection ((t :inherit est-salient)))
568 |
569 | '(buffer-menu-buffer ((t :inherit est-salient)))
570 | '(success ((t :inherit est-strong)))
571 | '(warning ((t :inherit (est-salient bold))))
572 |
573 | '(error ((t :inherit est-critical)))
574 | '(link ((t :inherit est-salient)))
575 | '(link-visited ((t :inherit link)))
576 | '(match ((t :inherit est-popout))) ; "Face for matched substrings (isearch, helm, ivy, etc.) "
577 | '(region ((t :inherit est-subtle)))
578 | '(secondary-selection ((t :inherit est-subtle)))
579 | '(fringe ((t :inherit est-faded)))
580 | '(escape-glyph ((t :inherit est-salient)))
581 | '(homoglyph ((t :inherit est-salient)))
582 |
583 | '(header-line ((t :inherit est-heading)))
584 | '(highlight ((t :inherit est-choice)))
585 | '(hl-line ((t :inherit est-subtle)))
586 | '(lazy-highlight ((t :inherit est-elusive)))
587 | '(minibuffer-prompt ((t :inherit est-emph)))
588 | '(show-paren-match ((t :inherit est-popout)))
589 | '(show-paren-mismatch ((t :inherit est-critical)))
590 | '(trailing-whitespace ((t :inherit est-subtle)))
591 |
592 | ;; '(agda2-highlight-keyword-face ((t :inherit fixed-pitch-serif)))
593 | ;; '(agda2-highlight-string-face ((t :inherit font-lock-string-face)))
594 | ;; '(agda2-highlight-number-face ((t)))
595 | ;; '(agda2-highlight-symbol-face ((t)))
596 | ;; '(agda2-highlight-primitive-type-face ((t)))
597 | ;; '(agda2-highlight-bound-variable-face ((t :inherit font-lock-variable-name-face)))
598 | ;; '(agda2-highlight-generalizable-variable-face ((t :inherit font-lock-variable-name-face)))
599 | ;; '(agda2-highlight-inductive-constructor-face ((t :inherit bold)))
600 | ;; '(agda2-highlight-coinductive-constructor-face ((t :inherit bold)))
601 | ;; '(agda2-highlight-datatype-face ((t :inherit font-lock-type-face)))
602 | ;; '(agda2-highlight-field-face ((t :inherit bold)))
603 | ;; '(agda2-highlight-function-face ((t :inherit font-lock-function-name-face)))
604 | ;; '(agda2-highlight-module-face ((t :inherit font-lock-type-face)))
605 | ;; '(agda2-highlight-postulate-face ((t :inherit font-lock-type-face)))
606 | ;; '(agda2-highlight-primitive-face ((t :inherit font-lock-constant-face)))
607 | ;; '(agda2-highlight-macro-face ((t :inherit font-lock-function-name-face)))
608 | ;; '(agda2-highlight-record-face ((t :inherit font-lock-variable-name-face)))
609 | ;; '(agda2-highlight-dotted-face ((t :inherit font-lock-variable-name-face)))
610 | ;; '(agda2-highlight-operator-face ((t :inherit est-serif)))
611 | ;; '(agda2-highlight-error-face ((t :inherit error)))
612 | ;; '(agda2-highlight-typechecks-face ((t :inherit est-highlight-1)))
613 | ;; '(agda2-highlight-typechecking-face ((t :inherit font-lock-preprocessor-face)))
614 |
615 | '(avy-background-face ((t :inherit shadow)))
616 | '(avy-lead-face ((t :inherit est-popout)))
617 | '(avy-lead-face-0 ((t :inherit est-emph)))
618 | '(avy-lead-face-1 ((t :inherit est-emph)))
619 | '(avy-lead-face-2 ((t :inherit est-emph)))
620 |
621 | '(boon-modeline-ins ((t :inherit est-choice-highlight-1)))
622 | '(boon-modeline-spc ((t :inherit est-choice-highlight-2)))
623 | '(boon-modeline-cmd ((t :inherit est-subtle)))
624 | '(boon-modeline-off ((t :inherit error)))
625 |
626 | '(custom-group-tag-1 ((t :inherit est-heading-1)))
627 | '(custom-group-tag ((t :inherit est-heading-2)))
628 | '(custom-variable-tag ((t :inherit est-heading)))
629 | '(custom-state ((t :inherit est-emph)))
630 | '(custom-changed ((t :inherit est-highlight-1)))
631 | '(custom-modified ((t :inherit est-highlight-1)))
632 | '(custom-invalid ((t :inherit (est-critical est-subtle))))
633 | '(custom-rogue ((t :inherit (est-critical est-subtle))))
634 | '(custom-set ((t :inherit est-highlight-2)))
635 | '(custom-variable-obsolete ((t :inherit est-faded)))
636 |
637 | '(corfu-current ((t :inherit est-choice)))
638 | '(corfu-default ((t :inherit est-subtle)))
639 | '(corfu-border ((t :inherit shadow :inverse-video t)))
640 | '(corfu-bar ((t :inverse-video t)))
641 |
642 | '(company-preview ((t :inherit est-choice)))
643 | '(company-preview-common ((t :inherit (est-emph company-preview))))
644 | '(company-preview-search ((t :inherit (est-match company-preview))))
645 | '(company-scrollbar-bg ((t :inherit est-subtle)))
646 | '(company-tooltip ((t :inherit est-subtle)))
647 | '(company-tooltip-selection ((t :inherit est-choice)))
648 | '(company-tooltip-common ((t :inherit est-emph)))
649 | '(company-tooltip-annotation ((t :inherit shadow)))
650 | '(company-scrollbar-bg ((t :inverse-video t :inherit est-shadow)))
651 | '(company-scrollbar-fg ((t :inverse-video t :inherit est-emph)))
652 |
653 | '(completions-common-part ((t :inherit match)))
654 | '(completions-first-difference ((t)))
655 |
656 | '(dired-directory ((t :inherit est-salient)))
657 | '(dired-flagged ((t :inherit est-popout)))
658 | '(dired-broken-symlink ((t :inherit est-critical)))
659 |
660 | '(diff-file-header ((t :inherit est-heading-3)))
661 | '(diff-header ((t :inherit est-heading-4)))
662 | '(diff-added ((t :inherit ediff-even-diff-face-A)))
663 | '(diff-removed ((t :inherit ediff-even-diff-face-B)))
664 |
665 | '(elastic-indent ((t (:inherit est-elusive))))
666 |
667 | '(eshell-prompt ((t :inherit est-strong)))
668 | '(eshell-ls-directory ((t :inherit dired-directory)))
669 | '(eshell-ls-symlink ((t :inherit dired-symlink)))
670 | '(eshell-ls-executable ((t :inherit est-popout)))
671 | '(eshell-ls-readonly ((t :inherit default)))
672 | '(eshell-ls-unreadable ((t :inherit dired-warning)))
673 | '(eshell-ls-special ((t :inherit dired-special)))
674 | '(eshell-ls-missing ((t :inherit error)))
675 | '(eshell-ls-archive ((t :inherit est-faded)))
676 | '(eshell-ls-backup ((t :inherit est-faded)))
677 | '(eshell-ls-product ((t :inherit est-faded)))
678 | '(eshell-ls-clutter ((t :inherit error)))
679 |
680 | '(font-latex-sectioning-1-face ((t :inherit est-heading-1)))
681 | '(font-latex-sectioning-2-face ((t :inherit est-heading-2)))
682 | '(font-latex-sectioning-3-face ((t :inherit est-heading-3)))
683 | '(font-latex-sectioning-4-face ((t :inherit est-heading)))
684 | '(font-latex-sectioning-5-face ((t :inherit est-heading)))
685 | '(font-latex-bold-face ((t :inherit bold)))
686 | '(font-latex-math-face ((t :inherit est-salient)))
687 | '(font-latex-script-char-face ((t :inherit est-salient)))
688 | '(font-latex-string-face ((t :inherit font-lock-string-face)))
689 | '(font-latex-warning-face ((t :inherit est-strong))) ; latex-warning face is not really a warning face!
690 | '(font-latex-italic-face ((t :inherit italic)))
691 | '(font-latex-verbatim-face ((t :inherit est-faded)))
692 |
693 | '(font-lock-bracket-face ((t )))
694 | '(font-lock-builtin-face ((t)))
695 | '(font-lock-comment-face ((t :inherit est-faded)))
696 | '(font-lock-constant-face ((t :inherit est-emph)))
697 | '(font-lock-delimiter-face ((t )))
698 | '(font-lock-doc-face ((t :inherit (italic est-faded))))
699 | '(font-lock-escape-face ((t :inherit est-emph)))
700 | '(font-lock-function-call-face ((t)))
701 | '(font-lock-function-name-face ((t :inherit est-strong)))
702 | '(font-lock-keyword-face ((t :inherit est-emph)))
703 | '(font-lock-misc-punctuation-face ((t )))
704 | '(font-lock-negation-char-face ((t :inherit est-emph)))
705 | '(font-lock-number-face ((t :inherit font-lock-constant-face)))
706 | '(font-lock-operator-face ((t :inherit est-serif)))
707 | '(font-lock-preprocessor-face ((t :inherit faded)))
708 | '(font-lock-property-name-face ((t )))
709 | '(font-lock-property-use-face ((t )))
710 | '(font-lock-punctuation-face ((t )))
711 | '(font-lock-regexp-face ((t :inherit est-salient)))
712 | '(font-lock-regexp-grouping-backslash ((t :inherit font-lock-escape-face)))
713 | '(font-lock-string-face ((t :inherit est-quoted)))
714 | '(font-lock-type-face ((t)))
715 | '(font-lock-variable-name-face ((t)))
716 | '(font-lock-variable-use-face ((t )))
717 | '(font-lock-warning-face ((t :inherit warning)))
718 |
719 | '(eglot-highlight-symbol-face ((t :inherit est-popout)))
720 |
721 | '(helm-candidate-number ((t :inherit mode-line)))
722 | '(helm-candidate-number-suspended ((t :inherit (warning mode-line))))
723 | '(helm-ff-directory ((t :inherit est-strong)))
724 | '(helm-ff-dotted-directory ((t :inherit est-faded)))
725 | '(helm-ff-executable ((t :inherit est-popout)))
726 | '(helm-ff-file ((t :inherit est-faded)))
727 | '(helm-ff-file-extension ((t :inherit est-faded)))
728 | '(helm-ff-prefix ((t :inherit est-strong)))
729 | '(helm-grep-file ((t :inherit est-faded)))
730 | '(helm-grep-finish ((t)))
731 | '(helm-grep-lineno ((t :inherit est-faded)))
732 | '(helm-grep-match ((t :inherit match)))
733 | '(helm-match ((t :inherit match)))
734 | '(helm-moccur-buffer ((t :inherit est-strong)))
735 | '(helm-selection ((t :inherit highlight)))
736 | '(helm-separator ((t :inherit est-separator)))
737 | '(helm-source-header ((t :inherit est-heading)))
738 | '(helm-swoop-target-line-face ((t :inherit (est-strong est-subtle))))
739 | '(helm-visible-mark ((t :inherit est-strong)))
740 | '(helm-buffer-size ((t :inherit est-faded)))
741 | '(helm-buffer-process ((t :inherit shadow)))
742 | '(helm-buffer-not-saved ((t :inherit est-popout)))
743 | '(helm-buffer-directory ((t :inherit est-salient)))
744 | '(helm-buffer-saved-out ((t :inherit est-critical)))
745 |
746 | `(help-key-binding ((t :inherit (est-emph est-subtle) :box (:line-width (1 . -1) :color ,est-color-fg-faded))))
747 |
748 | '(ido-only-match ((t :inherit match)))
749 |
750 | '(isearch ((t :inherit match)))
751 | '(isearch-fail ((t :inherit est-faded)))
752 |
753 | '(info-title-1 ((t :inherit est-heading-0)))
754 | '(info-title-2 ((t :inherit est-heading-1)))
755 | '(info-title-3 ((t :inherit est-heading-2)))
756 | '(info-title-4 ((t :inherit est-heading-3)))
757 | '(info-menu-header ((t :inherit est-heading)))
758 | '(info-menu-star ((t :inherit est-faded)))
759 | '(info-node ((t :inherit italic est-emph)))
760 |
761 | '(ivy-action ((t :inherit est-faded)))
762 | '(ivy-completions-annotations ((t :inherit est-faded)))
763 | '(ivy-confirm-face ((t :inherit est-faded)))
764 | '(ivy-current-match ((t :inherit highlight)))
765 | '(ivy-cursor ((t :inherit est-strong)))
766 | '(ivy-grep-info ((t :inherit est-strong)))
767 | '(ivy-grep-line-number ((t :inherit est-faded)))
768 | '(ivy-match-required-face ((t :inherit est-faded)))
769 | '(ivy-minibuffer-match-face-1 ((t :inherit match)))
770 | '(ivy-minibuffer-match-face-2 ((t :inherit match)))
771 | '(ivy-minibuffer-match-face-3 ((t :inherit match)))
772 | '(ivy-minibuffer-match-face-4 ((t :inherit match)))
773 | '(ivy-minibuffer-match-highlight ((t :inherit est-strong)))
774 | '(ivy-modified-buffer ((t :inherit est-popout)))
775 | '(ivy-modified-outside-buffer ((t :inherit est-strong)))
776 | '(ivy-org ((t :inherit est-faded)))
777 | '(ivy-prompt-match ((t :inherit est-faded)))
778 | '(ivy-remote ((t)))
779 | '(ivy-separator ((t :inherit est-faded)))
780 | '(ivy-subdir ((t :inherit est-faded)))
781 | '(ivy-virtual ((t :inherit est-faded)))
782 | '(ivy-yanked-word ((t :inherit est-faded)))
783 |
784 | '(git-commit-summary ((t :inherit est-emph)))
785 |
786 | '(hi-yellow ((t :inherit est-highlight-1))) ;; see also hi-lock-face-defaults
787 | '(hi-pink ((t :inherit est-highlight-2)))
788 |
789 | '(line-number ((t :inherit 'fixed-pitch)))
790 | '(line-number-current-line ((t :inherit 'fixed-pitch)))
791 |
792 | '(magit-diff-hunk-heading ((t :extend t :inherit est-heading)))
793 | '(magit-diff-hunk-heading-highlight ((t :extend t :inherit (est-heading est-choice))))
794 | '(magit-diff-context-highlight ((t :extend t :inherit est-choice)))
795 | '(magit-section-heading ((t :inherit est-heading-3)))
796 | '(magit-section-highlight ((t :inherit est-choice)))
797 | '(magit-hash ((t :inherit (shadow fixed-pitch))))
798 | '(magit-log-author ((t :inherit est-faded)))
799 | '(magit-diff-removed ((t :inherit diff-removed)))
800 | '(magit-diff-added ((t :inherit diff-added)))
801 | '(magit-tag ((t :inherit emph)))
802 | '(magit-dimmed ((t :inherit shadow)))
803 | '(magit-diff-lines-heading ((t :inherit (est-magit-selection magit-diff-hunk-heading-highlight))))
804 | '(magit-diff-file-heading-selection ((t :inherit (est-magit-selection magit-diff-file-heading-highlight))))
805 | '(magit-diff-hunk-heading-selection ((t :inherit (est-magit-selection magit-diff-hunk-heading))))
806 | '(magit-section-heading-selection ((t :inherit (est-magit-selection)))) ; doc is wrong for this face. So not assigned a section heading style (magit-section-heading)
807 | '(magit-diff-added-highlight ((t :inherit ediff-current-diff-face-A)))
808 | '(magit-diff-removed-highlight ((t :inherit ediff-current-diff-face-B)))
809 |
810 | '(makefile-space ((t :inherit warning)))
811 |
812 | '(marginalia-file-priv-no ((t :inherit (shadow fixed-pitch))))
813 | '(marginalia-file-priv-dir ((t :inherit (font-lock-keyword-face fixed-pitch))))
814 | '(marginalia-file-priv-link ((t :inherit (font-lock-keyword-face fixed-pitch))))
815 | '(marginalia-file-priv-read ((t :inherit (font-lock-type-face fixed-pitch))))
816 | '(marginalia-file-priv-write ((t :inherit (font-lock-builtin-face fixed-pitch))))
817 | '(marginalia-file-priv-exec ((t :inherit (font-lock-function-name-face fixed-pitch))))
818 | '(marginalia-file-priv-other ((t :inherit (font-lock-constant-face fixed-pitch))))
819 | '(marginalia-file-priv-rare ((t :inherit (font-lock-variable-name-face fixed-pitch))))
820 | '(marginalia-size ((t :inherit (marginalia-number fixed-pitch))))
821 |
822 | '(mode-line ((t :inherit (est-choice est-modeline-common))))
823 | '(mode-line-inactive ((t :inherit est-modeline-common)))
824 |
825 | '(orderless-match-face-0 ((t :inherit match)))
826 | '(orderless-match-face-1 ((t :inherit match)))
827 | '(orderless-match-face-2 ((t :inherit match)))
828 | '(orderless-match-face-3 ((t :inherit match)))
829 |
830 | '(org-default ((t :inherit variable-pitch))) ;; use (add-hook 'org-mode-hook 'buffer-face-mode) to actually use this.
831 | '(org-archived ((t :inherit est-faded)))
832 | '(org-block ((t :inherit (fixed-pitch est-elusive))))
833 | '(org-block-begin-line ((t :inherit org-block)))
834 | '(org-block-end-line ((t :inherit org-block)))
835 | '(org-checkbox ((t :inherit (est-emph fixed-pitch))))
836 | '(org-checkbox-statistics-done ((t :inherit est-faded)))
837 | '(org-checkbox-statistics-todo ((t :inherit est-faded)))
838 | '(org-clock-overlay ((t :inherit est-faded)))
839 | '(org-code ((t :inherit fixed-pitch)))
840 | '(org-column ((t :inherit est-faded)))
841 | '(org-column-title ((t :inherit est-faded)))
842 | '(org-date ((t :inherit est-faded)))
843 | '(org-date-selected ((t :inherit est-faded)))
844 | '(org-document-info ((t :inherit est-default)))
845 | '(org-document-info-keyword ((t :inherit est-faded)))
846 | '(org-document-title ((t :inherit est-heading-0)))
847 | '(org-done ((t)))
848 | '(org-drawer ((t :inherit est-faded)))
849 | '(org-ellipsis ((t :inherit est-faded)))
850 | '(org-footnote ((t :inherit est-faded)))
851 | '(org-formula ((t :inherit est-salient)))
852 | '(org-headline-done ((t :inherit est-faded)))
853 | '(org-hide ((t :inherit est-invisible))) ;; must not be fixed-pitch, otherwise org indent gives wrong results with variable pitch font.
854 | '(org-indent ((t :inherit est-invisible))) ;; must not be fixed-pitch, otherwise org indent gives wrong results with variable pitch font.
855 | '(org-latex-and-related ((t :inherit est-salient)))
856 | '(org-level-1 ((t :inherit est-heading-1)))
857 | '(org-level-2 ((t :inherit est-heading-2)))
858 | '(org-level-3 ((t :inherit est-heading-3)))
859 | '(org-level-4 ((t :inherit est-heading)))
860 | '(org-level-5 ((t :inherit est-heading)))
861 | '(org-level-6 ((t :inherit est-heading)))
862 | '(org-level-7 ((t :inherit est-heading)))
863 | '(org-level-8 ((t :inherit est-heading)))
864 | '(org-list-dt ((t :inherit est-faded)))
865 | '(org-macro ((t :inherit est-faded)))
866 | '(org-meta-line ((t :inherit est-faded)))
867 | '(org-mode-line-clock ((t :inherit est-faded)))
868 | '(org-mode-line-clock-overrun ((t :inherit warning)))
869 | '(org-priority ((t :inherit est-faded)))
870 | '(org-property-value ((t :inherit est-faded)))
871 | '(org-quote ((t :inherit est-faded)))
872 | '(org-scheduled ((t :inherit est-faded)))
873 | '(org-scheduled-previously ((t :inherit est-faded)))
874 | '(org-scheduled-today ((t :inherit est-faded)))
875 | '(org-sexp-date ((t :inherit est-faded)))
876 | '(org-special-keyword ((t :inherit est-faded)))
877 | '(org-table ((t :inherit fixed-pitch)))
878 | '(org-tag ((t :inherit est-faded)))
879 | '(org-tag-group ((t :inherit est-faded)))
880 | '(org-target ((t :inherit est-faded)))
881 | '(org-time-grid ((t :inherit est-faded)))
882 | '(org-todo ((t :inherit est-popout)))
883 | '(org-done ((t :inherit est-faded)))
884 | '(org-upcoming-deadline ((t :inherit est-strong)))
885 | '(org-verbatim ((t :inherit est-emph fixed-pitch)))
886 | '(org-verse ((t :inherit est-faded)))
887 |
888 | '(org-superstar-leading ((t :inherit org-hide)))
889 |
890 | '(powerline-active0 ((t :inherit est-choice)))
891 | '(powerline-active1 ((t :inherit est-choice))) ;; est-highlight-1 or est-highlight-2 for extra flare
892 | '(powerline-active2 ((t :inherit est-choice)))
893 | '(powerline-inactive0 ((t :inherit est-faded)))
894 | '(powerline-inactive1 ((t :inherit powerline-inactive0)))
895 | '(powerline-inactive2 ((t :inherit powerline-inactive0)))
896 |
897 | '(mode-line-highlight ((t :inherit est-strong)))
898 | '(mode-line-emphasis ((t :inherit bold))) ;
899 | '(mode-line-buffer-id ((t :inherit emph)))
900 | ;; '(mode-line-buffer-id-inactive)
901 |
902 | '(spaceline-highlight-face ((t :inherit est-highlight-1)))
903 | '(spaceline-flycheck-error ((t :inherit est-critical)))
904 | '(spaceline-flycheck-warning ((t :inherit warning)))
905 | '(spaceline-flycheck-info ((t :inherit est-emph)))
906 |
907 | '(selectrum-primary-highlight ((t :inherit match)))
908 |
909 | '(sh-quoted-exec ((t :inherit salient)))
910 |
911 | '(smerge-lower ((t :inherit diff-added)))
912 | '(smerge-upper ((t :ihnerit diff-removed)))
913 | '(smerge-markers ((t inherit shadow)))
914 | '(smerge-base ((t :inherit ediff-even-diff-face-Ancestor)))
915 | '(smerge-refined-added ((t :inherit ediff-fine-diff-face-A)))
916 | '(smerge-refined-removed ((t :inherit ediff-fine-diff-face-B)))
917 | '(smerge-refined-change ((t :inherit ediff-fine-diff-face-C)))
918 |
919 | '(swiper-match-face-1 ((t :inherit match)))
920 | '(swiper-match-face-2 ((t :inherit match)))
921 | '(swiper-match-face-3 ((t :inherit match)))
922 | '(swiper-match-face-4 ((t :inherit match)))
923 |
924 | '(transient-heading ((t :inherit (font-lock-keyword-face variable-pitch))))
925 | ;; useful when transient-force-fixed-pitch is t
926 |
927 | '(vc-removed-state ((t :inherit vc-state-base est-emph)))
928 | '(vc-missing-state ((t :inherit vc-state-base est-emph)))
929 | '(vc-conflict-state ((t :inherit vc-state-base vc-state warning )))
930 |
931 | '(widget-field ((t :inherit (est-faded est-subtle)))))
932 |
933 | (provide-theme 'est-style)
934 |
935 | (enable-theme 'est-style)
936 |
937 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
938 | ;; Quick palette re-theming
939 |
940 | (defun est-lunarized-dark ()
941 | "Solarized-inspired theme (dark)."
942 | (interactive)
943 | (setq est-color-fg-default "#839496"
944 | est-color-fg-salient "#268bd2"
945 | est-color-fg-popout "#eee8d5"
946 | est-color-bg-default "#002b36"
947 | est-color-bg-subtle "#06303c"
948 | est-color-bg-selected "#073642")
949 | (est-reevaluate))
950 |
951 |
952 | (defun est-lunarized-light ()
953 | "Solarized-inspired theme (light)."
954 | (interactive)
955 | (setq est-color-fg-default "#657b83"
956 | est-color-fg-salient "#268bd2"
957 | est-color-fg-popout "#d33682"
958 | est-color-bg-default "#fdf6e3"
959 | est-color-bg-subtle "#fff9d2"
960 | est-color-bg-selected "#ffffff")
961 | (est-reevaluate))
962 |
963 | (defun est-cloudy-day ()
964 | "Light grey/white palette, blue tones."
965 | (interactive)
966 | (setq est-color-fg-default "#3e4759"
967 | est-color-bg-default "#ffffff"
968 | est-color-bg-subtle "#eef1f6"
969 | est-color-bg-selected "#e5e9f0"
970 | est-color-fg-salient "#1756c2"
971 | est-color-fg-popout "#00e0ff")
972 | (est-reevaluate))
973 |
974 | (defun est-cloudy-night ()
975 | "Dark grey palette, blue accents."
976 | (interactive)
977 | (setq est-color-bg-selected "#192435"
978 | est-color-bg-subtle "#242e41"
979 | est-color-bg-default "#2b3547"
980 | est-color-fg-default "#cccfd4"
981 | est-color-fg-salient "#5a8bff"
982 | est-color-fg-popout "#00c8ff")
983 | (est-reevaluate))
984 |
985 | (defun est-starry-night-palette ()
986 | "Inspired by Van Gogh's masterpiece."
987 | (interactive)
988 | (setq est-color-bg-selected "#00128d"
989 | est-color-bg-subtle "#000010"
990 | est-color-bg-default "#000050"
991 | est-color-fg-default "#819ce6"
992 | est-color-fg-salient "#74a5b3"
993 | est-color-fg-popout "#e7d97b")
994 | (est-reevaluate))
995 |
996 | (defun est-wood-palette ()
997 | "Wood and forest color tones."
998 | (interactive)
999 | (setq est-color-bg-selected "#896a3f"
1000 | est-color-bg-subtle "#5e454b"
1001 | est-color-bg-default "#4a3339"
1002 | est-color-fg-default "#f3f0d7"
1003 | est-color-fg-salient "#3fab9b"
1004 | est-color-fg-popout "#26f66a"
1005 | est-accent-chroma 35)
1006 | (est-reevaluate))
1007 |
1008 | (defun est-seaside-palette ()
1009 | "Seaweed and rocks."
1010 | (interactive)
1011 | (setq est-color-bg-selected "#004b50"
1012 | est-color-bg-subtle "#3b4b60"
1013 | est-color-bg-default "#2c3c51"
1014 | est-color-fg-default "#c6cdda"
1015 | est-color-fg-salient "#a77b3f"
1016 | est-color-fg-popout "#00bbff")
1017 | (est-reevaluate))
1018 |
1019 | (defun est-roboto-fonts ()
1020 | "Use Roboto font set.
1021 | Same vertical density to Cantarell, but more condensed and
1022 | heavier."
1023 | (interactive)
1024 | (setq est-fixed-pitch-font '(:family "Roboto Mono"))
1025 | (setq est-variable-pitch-font '(:family "Roboto"))
1026 | (est-reevaluate))
1027 |
1028 | (defun est-dejavu-fonts ()
1029 | "Use DejaVu font set.
1030 | Very dense look and relatively wide characters. Good unicode
1031 | coverage."
1032 | (interactive)
1033 | (set-fontset-font "fontset-default" '(#x1D00 . #x1DFF) "DejaVu Sans Mono")
1034 | ;; Phonetic Extensions, Phonetic Extensions Supplement, Combining Diacritical Marks Supplement
1035 | (set-fontset-font "fontset-default" '(#x2000 . #x2FFF) "DejaVu Sans Mono")
1036 | (setq est-fixed-pitch-font '(:family "DejaVu Sans Mono"))
1037 | (setq est-variable-pitch-font '(:family "DejaVu Sans"))
1038 | (est-reevaluate))
1039 |
1040 | (defun est-adwaita-fonts ()
1041 | "Use Adwaita fonts.
1042 | Default fontset from Gnome 48. Adwaita Mono being a variant of Iosevka,
1043 | the chosen monospace serif font is set to Iosevka Slab."
1044 | (interactive)
1045 | (setq est-variable-pitch-font '(:family "Adwaita Sans"))
1046 | (setq est-fixed-pitch-font '(:family "Adwaita Mono"))
1047 | (setq est-fixed-pitch-serif-font '(:family "Iosevka Slab"))
1048 | (est-reevaluate))
1049 |
1050 | (defun est-iosevka-fonts ()
1051 | "Use Iosevka fonts.
1052 | Excellent unicode coverage and consistency with simple design."
1053 | (interactive)
1054 | (setq est-variable-pitch-font '(:family "Iosevka Aile"))
1055 | (setq est-fixed-pitch-font '(:family "Iosevka"))
1056 | (setq est-fixed-pitch-serif-font '(:family "Iosevka Slab"))
1057 | (est-reevaluate))
1058 |
1059 | (defun est-gnome-legacy-fonts ()
1060 | "Use Cantarell and Source Code fonts.
1061 | Balanced in terms of density."
1062 | (interactive)
1063 | (setq est-variable-pitch-font '(:family "Cantarell")) ; lacks italic variant 🙁; see est-italic-fallback-spec-alist
1064 | (set-fontset-font "fontset-default" '(#x2000 . #x27FF) "DejaVu Sans")
1065 | (set-fontset-font "fontset-default" '(#x2000 . #x27FF) "Noto Sans Symbols" nil 'append)
1066 | ;; (setq est-fixed-pitch-font "Roboto Mono") ; same vertical density but too high
1067 | (setq est-fixed-pitch-font '(:family "Source Code Pro"))
1068 | (setq est-fixed-pitch-serif-font '(:family "Fira Code"))
1069 | (est-reevaluate))
1070 |
1071 | (defun est-inter-fonts ()
1072 | "Inter"
1073 | (interactive)
1074 | (setq est-variable-pitch-font '(:family "Inter Variable" :otf (latn nil (cv05 cv08 zero) nil)))
1075 | (set-fontset-font "fontset-default" nil (font-spec :family "Inter Variable" :otf '(latn nil (cv05 cv08 zero) nil)))
1076 | ;; FIXME otf features don't actually enable anything, they only select fonts which have the required features
1077 | ;; https://lists.gnu.org/archive/html/help-gnu-emacs/2023-09/msg00034.html
1078 | (setq est-fixed-pitch-font '(:family "CommitMono"))
1079 | (est-reevaluate))
1080 |
1081 |
1082 | (defun est-adobe-fonts ()
1083 | "Use Adobe Clean fontset.
1084 | Clean, distinctive look. Like Cantarell, has a balanced
1085 | density. Taller than Cantarell, shows a couple of lines less. Is
1086 | more condensed (horizontally)."
1087 | (interactive)
1088 | (setq est-variable-pitch-font '(:family "Adobe Clean"))
1089 | (set-fontset-font "fontset-default" '(#x2000 . #x27FF) "DejaVu Sans")
1090 | (set-fontset-font "fontset-default" '(#x2000 . #x27FF) "Noto Sans Symbols" nil 'append)
1091 | (setq est-fixed-pitch-font '(:family "Source Code Pro"))
1092 | (setq est-fixed-pitch-serif-font '(:family "Adobe Clean Serif"))
1093 | (est-reevaluate))
1094 |
1095 | (defun est-fira-fonts ()
1096 | "Use Fira fontset.
1097 | This fontset provides a consistent look same vertical density as
1098 | Roboto. Many unicode characters are missing and Fira Math
1099 | appears to be absent from nixpkgs. Lowercase \"l\" has a visible
1100 | curve. Some glyphs have a very distinctive look, such as roman
1101 | g, y, λ; or monospace r. We use the semilight weight here to
1102 | achieve similar greyness as other fontsets."
1103 | ; g y λ ; examples in Roman slant.
1104 | (interactive)
1105 | (setq est-variable-pitch-font '(:family "FiraGO" :weight semilight)) ;
1106 | (setq est-fixed-pitch-font '(:family "Fira Code" :weight regular))
1107 | (setq est-fixed-pitch-serif-font est-fixed-pitch-font)
1108 | (est-reevaluate))
1109 |
1110 | (defun est-source-fonts ()
1111 | "Use Source font set.
1112 | Clean look, similar to Noto but the lowercase \"l\" has a curve. Very
1113 | wide interline spacing, shows comfortably only 34 lines."
1114 | (interactive)
1115 | (setq est-variable-pitch-font '(:family "Source Sans 3"))
1116 | (setq est-fixed-pitch-font '(:family "Source Code Pro"))
1117 | (setq est-variable-pitch-serif-font '(:family "Source Serif 4"))
1118 | (set-fontset-font "fontset-default" '(#x2000 . #x2FFF) "DejaVu Sans") ; symbols
1119 | (set-fontset-font "fontset-default" '(#x1d400 . #x1d7FF) "STIX Two Math") ; Mathematical Alphanumeric Symbols
1120 | (est-reevaluate))
1121 |
1122 | (defun est-libertinus-fonts ()
1123 | "Use Libertinus font set.
1124 | Its uneven stroke widths make it more suitable for print and
1125 | large font sizes, or for effect."
1126 | (interactive)
1127 | (setq est-fixed-pitch-font '(:family "Inconsolata LGC"))
1128 | (setq est-variable-pitch-font '(:family "Libertinus Sans"))
1129 | (setq est-fixed-pitch-serif-font '(:family "Libertinus Mono"))
1130 | (est-reevaluate))
1131 |
1132 | (defun est-noto-fonts ()
1133 | "Use Noto font set.
1134 | A clean, commonplace fontset, with excellent unicode
1135 | support. Shows 37 lines."
1136 | (interactive)
1137 | ;; TODO: (new-fontset "-est-notosansset-*-*-*--*-*-*-*-*-*-fontset-*" (list (t . '(:family "Noto Sans")))) ; define fontset so that we don't override default settings
1138 | (set-fontset-font "fontset-default" '(#x2000 . #x23FF) "Noto Sans Math")
1139 | (set-fontset-font "fontset-default" '(#x2000 . #x23FF) "Noto Sans Symbols" nil 'append)
1140 | (set-fontset-font "fontset-default" '(#x2400 . #x27FF) "Noto Sans Symbols")
1141 | ;; see https://gist.github.com/alanthird/7152752d384325a83677f4a90e1e1a05 for other Noto scripts
1142 | (setq est-fixed-pitch-font '(:family "Noto Sans Mono"))
1143 | (setq est-variable-pitch-font '(:family "Noto Sans"))
1144 | (setq est-variable-pitch-serif-font '(:family "Noto Serif"))
1145 | (setq est-fixed-pitch-serif-font '(:family "Noto Sans Mono")) ; yes
1146 | (est-reevaluate))
1147 |
1148 | (defun est-lato-fonts ()
1149 | "Use Lato fontset."
1150 | (interactive)
1151 | ;; TODO: (new-fontset "-est-notosansset-*-*-*--*-*-*-*-*-*-fontset-*" (list (t . '(:family "Noto Sans")))) ; define fontset so that we don't override default settings
1152 | ;; see https://gist.github.com/alanthird/7152752d384325a83677f4a90e1e1a05 for other Noto scripts
1153 |
1154 | (set-fontset-font "fontset-default" '(#x1D00 . #x1DFF) "DejaVu Sans")
1155 | (set-fontset-font "fontset-default" '(#x2000 . #x2FFF) "DejaVu Sans") ;; Phonetic Extensions, Phonetic Extensions Supplement, Combining Diacritical Marks Supplement
1156 |
1157 | (setq est-fixed-pitch-font '(:family "DejaVu Sans Mono"))
1158 | (setq est-variable-pitch-font '(:family "Lato"))
1159 | (setq est-variable-pitch-serif-font '(:family "DejaVu Sans"))
1160 | (setq est-fixed-pitch-serif-font '(:family "DejaVu Sans Mono")) ; yes
1161 | (est-reevaluate))
1162 |
1163 | (defun est-pt-fonts ()
1164 | "Use PT (Paratype) fontset.
1165 | An issue with this fontset is that the Mono variant appears to be
1166 | much larger than the Sans variant. It is also taking a lot of
1167 | vertical space."
1168 | (interactive)
1169 |
1170 | (set-fontset-font "fontset-default" '(#x1D00 . #x1DFF) "DejaVu Sans")
1171 | (set-fontset-font "fontset-default" '(#x2000 . #x2FFF) "DejaVu Sans") ;; Phonetic Extensions, Phonetic Extensions Supplement, Combining Diacritical Marks Supplement
1172 |
1173 | (setq est-fixed-pitch-font '(:family "PT Mono"))
1174 | (setq est-variable-pitch-font '(:family "PT Sans"))
1175 | (setq est-variable-pitch-serif-font '(:family "PT Serif"))
1176 | (setq est-fixed-pitch-serif-font '(:family "PT Mono")) ; yes
1177 | (est-reevaluate))
1178 |
1179 | ;; sample character set:
1180 | ;; Math
1181 | ;; ∀∁⋀⋐⋠⋰⌀⁁⎀␀ⱼᵢ
1182 | ;; Greek
1183 | ; α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ τ υ φ χ ψ ω
1184 | ;; Ligatures
1185 | ; fi -> fi fl -> fl ff -> ff oe -> œ
1186 |
1187 | (provide 'est)
1188 |
1189 | ;;; est.el ends here
1190 |
--------------------------------------------------------------------------------
/starry-night.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jyp/emacs-semantics-theming/e3278a9723d6e72cf9301ceb3a227dcdd6e3385e/starry-night.png
--------------------------------------------------------------------------------