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

org-agenda-custom commands extra blank line #10

Closed
measpear opened this issue Aug 15, 2017 · 4 comments
Closed

org-agenda-custom commands extra blank line #10

measpear opened this issue Aug 15, 2017 · 4 comments

Comments

@measpear
Copy link

When using the org-super-agenda with org-agenda-custom commands extra blank line occurs before the org-super-agenda :name property (due to overriding header variable ?).
Is is possible to prevent this ?

For example, using the following code snippet, extra blank line occurs before Projects heading.
(let ((org-agenda-custom-commands
'(("u" "Super view"
((agenda "" ((org-super-agenda-groups
'((:name "Today"
:time-grid t)))))
(todo "" ((org-agenda-overriding-header "")
(org-super-agenda-groups
'((:name "Projects"
:children todo)
(:discard (:anything t)))))))))))
(org-agenda nil "u"))
untitled

@alphapapa
Copy link
Owner

alphapapa commented Aug 16, 2017

Hi,

What you're seeing is an empty org-agenda-overriding-header. It's not possible to control that from this package. If you set it to an empty string, Org will insert a blank line. If you set it to nil, it will insert a predefined header.

It was fairly simple, so I made a patch for this and submitted it to the org-mode mailing list. I think they will probably accept it, but we'll see.

@measpear
Copy link
Author

Hi,
Thanks for the patch. What i had in my mind is to use org-super-agenda without name property. This way by setting overriding-header as "Projects" i think that i can prevent blank line in org-super-agenda custom-commands use cases.

But your solution is better this way.

@alphapapa
Copy link
Owner

Oh, well, I think we can do that too. I'll look into it. Thanks.

@alphapapa
Copy link
Owner

I think that should do it. :)

dancn pushed a commit to dancn/org-super-agenda that referenced this issue Apr 24, 2020
Fixes alphapapa#10.  Thanks to @measpear for suggesting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants