Giter VIP home page Giter VIP logo

Comments (8)

rougier avatar rougier commented on July 26, 2024

That's weird. Did you try with vanilla emacs (emacs -q)?

from emacs-gtd.

lazzalazza avatar lazzalazza commented on July 26, 2024

from emacs-gtd.

MagicRB avatar MagicRB commented on July 26, 2024

I'm experiencing the same, I'm on Emacs 29, custom config

from emacs-gtd.

rougier avatar rougier commented on July 26, 2024

@MagicRB Can you try with emacs -q ?

from emacs-gtd.

perryprog avatar perryprog commented on July 26, 2024

Looks like it's happening because org-agenda-span is set to 'week (or more), so there's a new line for every date (which is an empty string). You can fix this by adding (org-agenda-span 'week) to the offending sections.

from emacs-gtd.

rougier avatar rougier commented on July 26, 2024

Or we can ask agenda to not display empty day (forgot the name of the option though)

from emacs-gtd.

sonn-gamm avatar sonn-gamm commented on July 26, 2024

Or we can ask agenda to not display empty day (forgot the name of the option though)

Thanks for the tip, I looked up the option, it's this one:

(org-agenda-show-all-dates nil)

Leaving (org-agenda-format-date "") in the deadline block hides the line but keep the line itself, producing ultimately an empty line. Therefore, I took out this option and by using the following agenda block:

(agenda nil
        ((org-agenda-entry-types '(:deadline))
         (org-deadline-warning-days 7)
         (org-agenda-show-all-dates nil)
         (org-agenda-skip-function
          '(org-agenda-skip-entry-if 'notregexp "\\* NEXT"))
         (org-agenda-overriding-header "\nDeadlines")))

I get the following Agenda Display:

Deadlines
Saturday 10 December 2022
  inbox:        In  1 d.: NEXT another test
Sunday   11 December 2022
  inbox:        Deadline: NEXT another test

When there's no DEADLINE tasks, the Deadline block produces the following:

Deadlines

I still am not sure how @rougier achieved what's described in the README, but in the end it's useful to see the date above the task...

Thanks and hope this is useful.

from emacs-gtd.

rougier avatar rougier commented on July 26, 2024

I think there were some questions on stack overflow on how to get rid of the section title when it it empy but no solution was given from what I remember. Not that the section title can be a function such that you test if section empty and compute title accordingly.

from emacs-gtd.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.