bastibe/annotate.el

how to loop color face when creating annotate?

emacs25 opened this issue ยท 16 comments

great package which helps me a lot to read book
with thinking.
i want more colors to show so i add annotation-
highlight-third....and annotate-annotation-thir
d...and so on.

please tell me how to modify "annotate--annotat
ion-builder" to enable them?

by the way,is it possible to adjust emacs theme with both light and dark?

cage2 commented

Hi @emacs25 !

The number of colors for the annotation is deeply ingrained in the code, unfortunately. Your proposed changes needs a lot of work and to be honest i do not know when i am going to find spare time to work on this improvements. If you want to file a patch i can support you writing it, if help is needed. Otherwise we have to wait that I finish working on the issue's backlog (and not only for this project!). The idea is nice, though! ๐Ÿ˜ธ

Bye!
C.

cage2 commented

by the way,is it possible to adjust emacs theme with both light and dark?

You mean adapt the annotation theme with the emacs theme? Likely yes, do you have some documents about how light and dark theme for works in emacs?

Thanks!
C.

maybe i should wait for your plan because i can't write elisp code for the function now.

i customize annotate color for different colors and add them into dark/light theme to adapt emacs theme.

cage2 commented

thanks for your effort

actually i prefer loop colors automactically to select them by hand.

cage2 commented
cage2 commented

Hi @emacs-newer

I worked on this feature, i hope to propose a pull request next week.

Bye!
C.

cool and thanks so much for your work!

cage2 commented

Hi @emacs-newer !

The patch in #151 hopefully added the feature you asked for; may you, please check if it works as expected?

if you want to change the annotation colors just customize these two variables:

You can add as much colors as you please but the length of the two lists must be the same.

As a bonus if you use a numeric prefix for the command annotate-annotate the prefix is interpreted as an index for the lists bound to the aforementioned variables, this way the user can force a specific color for each annotation.

Thanks in advance!
C.

okay, i will try it tomorrow.

thanks very much

cage2 commented

works fine!

but how to add different colors to dark/light theme files?

there are secondary-xxx variables before,but now it seems no options to set up seprivately.

cage2 commented

okay, i'll try it later, thanks

cage2 commented

Hi @emacs-newer !

After merging #151 i think this report can be closed, feel free to reopen it if you think more work the patch doe not address the feature you proposed in the correct way.

Bye!
C.