-
Notifications
You must be signed in to change notification settings - Fork 107
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
How to disable org-super-agenda? #14
Comments
Hi Karl, It's defined using the standard |
Thanks! Unfortunately, it seems to be the case that So maybe solving the root cause is is my interest as well? ;-) Otherwise: is it possible to "catch" the prefix argument within org-agenda-custom-commands using when on invocation time? I do have my doubts... Does anybody use |
Do you use the As for the root cause, I don't see how
Sorry, I don't understand what you mean. I'm afraid I'm kind of lost now. If all you want is to disable the super-groups from being written to your stored views files, all you should have to do is what you said in your last message:
If that doesn't work, I'm guessing that something else in your init file is activating Then again, I've never used the stored views, so... :) |
My guess is that my own invocation of
Definition of my-super-agenda-groups The comment where I unfortunately lost you was something in this direction:
As far as I know is this not possible because when the agenda is generated, this status check is not executed. But I am really wild guessing here and I don't have an idea how to replace |
Maybe another approach will work. You see, if (let ((org-super-agenda-groups nil))
(org-store-agenda-views)) By the way, I don't think this is valid: (setq org-agenda-custom-commands
(quote (
("a" "Super Agenda" agenda
(org-super-agenda-mode) ;;; <--- I activate super-agenda for this specific agenda only; not the others
((org-super-agenda-groups my-super-agenda-groups))
(org-agenda nil "a")) Looking at the docs for Anyway, try this:
|
Oh, I think I see the problem now: you want to use So, yeah, just set the groups to nil for the commands you don't want to be grouped. You can't call a function for each agenda "subcommand" within the custom command, but you can bind variables for each subcommand, so you can disable the grouping that way. ...Okay, so I guess now I really get it: you want to have groups or not depending on whether you're storing the agenda views or viewing them in Emacs. I think the best thing to do is just use a copy of the agenda commands that doesn't do grouping. If you don't change the commands very often, it won't be much trouble to update them. If you do change them a lot, you could easily write a function to set |
Let me know if you have any other issues or ideas. :) |
Hi!
The Error
Adding super-agenda to my setup broke a cronjob of mine which exports my agenda to a HTML file:
/usr/bin/emacs --batch --load /home/vk/.emacs.d/init.el --eval '(progn (setq org-agenda-files (append my-work-agenda-files my-nonwork-agenda-files)) (org-store-agenda-views))'
I now get:
Wrong type argument: stringp, org-agenda
The stack trace for this error when I call it interactively in a running Emacs:
My current super agenda settings in case this is relevant to anybody.
Why I'm Not Interested In Fixing The Root Cause & What I Want To Achieve Instead
The error and its stack trace is not relevant to me, because I personally don't care to solve the root cause of it. Since I don't want the super-agenda output format in this HTML file anyway, I would like to disable the mode for this process (CLI invocation via cronjob to export my agenda file) only instead. With a running GUI Emacs, I'm file with the current situation and very grateful of having org-super-agenda.
Interactively, calling
(org-super-agenda-mode)
toggles the mode on/off. Therefore, without having deeper knowledge of Elisp I tried the following command:/usr/bin/emacs --batch --load /home/vk/.emacs.d/init.el --eval '(progn (setq org-agenda-files (append my-work-agenda-files my-nonwork-agenda-files)) (org-super-agenda-mode) (org-store-agenda-views))'
This seems not to toggle the mode but to enable it twice: I do see "org-super-agenda-mode enabled." multiple times in the Messages buffer.
So: how am I able to disable the mode for this invocation?
Thanks!
The text was updated successfully, but these errors were encountered: