Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize group name ? #229

Open
deb75 opened this issue Aug 15, 2022 · 7 comments
Open

Customize group name ? #229

deb75 opened this issue Aug 15, 2022 · 7 comments
Assignees
Milestone

Comments

@deb75
Copy link

deb75 commented Aug 15, 2022

Hi,

I would like to customize the name of each group. By default, it just appears in bold characters,
is it possible to propertize it : modifying the background/foreground colors, font weight and sizes, underlying ?

I noticed the :face keyword which does this but only to the group body, not its header, as far as I understand.

Regards

@alphapapa
Copy link
Owner

Hello,

If you use M-x customize-group RET org-super-agenda RET you can find the face that can be customized.

@deb75
Copy link
Author

deb75 commented Aug 16, 2022

Thanks, got it.

However, I guess it would set the face for all group names, is there a way to set the header face on a per group basis ? like :face does for the group body.

@alphapapa
Copy link
Owner

As you can see in the documentation, the group :name is a string, so you may propertize it as you wish.

@deb75
Copy link
Author

deb75 commented Aug 16, 2022

Hi,

I tried to replace :name "mygroup" with :name (propertize "mygroup" 'face '(:height 1.2)) but I got the error :

org-super-agenda--group-items: Wrong type argument: buffer-or-string-p, `(propertize "mygroup" 'face '(:height 1.2))

I guess the issue is that the function call (propertize) is not replaced by its result. Excuse my poor elisp knowledge but, how can I do this ?

Regards

@alphapapa
Copy link
Owner

You will need to make sure the propertize form is evaluated and its value placed into the list. Please see (info "(elisp)Backquote"). If you need more help with Elisp, please ask in an appropriate forum or chat room.

@deb75
Copy link
Author

deb75 commented Aug 17, 2022

Yes, it is now evaluated, the string appears but it is not propertized, it seems the properties are overwritten by the org-super-agenda-header face.

@alphapapa
Copy link
Owner

Yes, it is now evaluated, the string appears but it is not propertized, it seems the properties are overwritten by the org-super-agenda-header face.

Ok, we'll need to apply the faces differently then. I probably won't get to this anytime soon, so patches welcome. Thanks.

@alphapapa alphapapa self-assigned this Sep 24, 2023
@alphapapa alphapapa added this to the 1.4 milestone Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants