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

Is it possible to reuse blocks of org-super-agenda settings? #246

Open
max6166 opened this issue Jul 29, 2023 · 1 comment
Open

Is it possible to reuse blocks of org-super-agenda settings? #246

max6166 opened this issue Jul 29, 2023 · 1 comment
Labels

Comments

@max6166
Copy link

max6166 commented Jul 29, 2023

I have many different agenda views based which implement org-super-agenda. There are many agenda sections of settings which are common to more than one agenda view.

Currently, when I change one of these sections, I have to manually search for every instance of that section and manually update it with the new change.

I'm pretty certain that a better way exists where I can just define a section once and share those settings across different agendas. Unfortunately, I have been studying elisp and realize it will be a while before I will know enough to come up with my own solution.

Any pointers would be greatly appreciated. Perhaps other users would find this info useful as well.

@alphapapa
Copy link
Owner

Hello,

Certainly, the org-super-agenda-groups variable is just a sexp, which can be composed from other parts like any other. I'd recommend looking at the Elisp manual, especially the section on backquoting and splicing. That should teach you how to compose a list from multiple other lists. Then you could put common parts of the list into a variable and splice that into the appropriate places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants