Giter VIP home page Giter VIP logo

Comments (13)

novoid avatar novoid commented on May 27, 2024 1

Cannot see it, did you submit it?

Yes, I thought so.

Don't know why it failed. Now it should work: #141

from nano-emacs.

rougier avatar rougier commented on May 27, 2024

Would have some suggestions (and possibly screenshots) to see the changes?
By the way, tou might also consider nano-theme (on ELPA) that provides the same color theme but is easier to customize.

from nano-emacs.

novoid avatar novoid commented on May 27, 2024

Sure.

Here is my current Emacs nano setup of my agenda (blurred):

2023-01-16T18 16 49 Emacs nano agenda -- screenshots anonymized

The very same view in my previously used wombat theme.

2023-01-16T18 19 37 Emacs wombat theme -- screenshots anonymized

As you can see, the wombat themed org-super-agenda is using the clearly distinguishable green color for items that are due/scheduled this very day. The overdue items (the majority) are using orange and red colors.

With the nano theme, all items do use the identical font color for today's items and overdue items. This is much harder to parse by the human eye in order to find out today's tasks in contrast to overdue tasks from previous days.

I haven't looked into nano-theme yet but I will consider it. Do you - by chance - know that there is a pre-defined different setting for today's tasks and overdue tasks in the other nano theme?

Thanks!

from nano-emacs.

rougier avatar rougier commented on May 27, 2024

Sorry for delay. Here is the part for org-agenda in nano-theme:

   '(org-agenda-calendar-event      ((t (:inherit nano-default))))
   '(org-agenda-calendar-sexp       ((t (:inherit nano-salient))))
   '(org-agenda-clocking            ((t (:inherit nano-faded))))
   '(org-agenda-column-dateline     ((t (:inherit nano-faded))))
   '(org-agenda-current-time        ((t (:inherit (nano-strong
                                                   nano-salient)))))
   '(org-agenda-date                ((t (:inherit nano-strong))))
   '(org-agenda-date-today          ((t (:inherit (nano-salient
                                                   nano-strong)))))
   '(org-agenda-date-weekend        ((t (:inherit nano-faded))))
   '(org-agenda-diary               ((t (:inherit nano-faded))))
   '(org-agenda-dimmed-todo-face    ((t (:inherit nano-faded))))
   '(org-agenda-done                ((t (:inherit nano-faded))))
   '(org-agenda-filter-category     ((t (:inherit nano-faded))))
   '(org-agenda-filter-effort       ((t (:inherit nano-faded))))
   '(org-agenda-filter-regexp       ((t (:inherit nano-faded))))
   '(org-agenda-filter-tags         ((t (:inherit nano-faded))))
   '(org-agenda-property-face       ((t (:inherit nano-faded))))
   '(org-agenda-restriction-lock    ((t (:inherit nano-faded))))
   '(org-agenda-structure           ((t (:inherit nano-strong))))

Which one corresponds to your case ?

from nano-emacs.

novoid avatar novoid commented on May 27, 2024

Good question. I don't know the details about this.

Main goal is to have a clearly different face for overdue items (scheduled/deadline yesterday or older) in contrast to items scheduled/deadline for today.

from nano-emacs.

rougier avatar rougier commented on May 27, 2024

Can you check the face for overdue items in your agenda (using describe-face when the point is on an overdue item)

from nano-emacs.

novoid avatar novoid commented on May 27, 2024

Can you check the face for overdue items in your agenda (using describe-face when the point is on an overdue item)

Perfect. Thanks for the pointer.

describe-face asks me for something and I use the default "hl-line".

Okay, here we go: scheduled today:

           Family: unspecified
          Foundry: unspecified
            Width: unspecified
           Height: unspecified
           Weight: unspecified
            Slant: unspecified
       Foreground: unspecified
DistantForeground: unspecified
       Background: #3B4252
        Underline: unspecified
         Overline: unspecified
   Strike-through: unspecified
              Box: unspecified
          Inverse: unspecified
          Stipple: unspecified
             Font: unspecified
          Fontset: unspecified
           Extend: t
          Inherit: highlight

For an item that is overdue it's the same.

I guess this is something you weren't hoping for. I guess that's related to some of my settings:

  (add-hook 'org-agenda-mode-hook '(lambda () (hl-line-mode 1)))

... this might interfere with nano-emacs I guess. I don't know because this should only change the settings of the current agenda line AFAIK.

from nano-emacs.

rougier avatar rougier commented on May 27, 2024

You need first to disable hl-line mode and then describe-face should describe face under point.

from nano-emacs.

novoid avatar novoid commented on May 27, 2024

Of course. So, I disabled hl-line-mode and rebootet Emacs.

describe-face now has the default org-scheduled-today when invoked over an item which is scheduled for today:

Documentation:
Face for items scheduled for a certain day.

Defined in  org-faces.el .


           Family: unspecified
          Foundry: unspecified
            Width: unspecified
           Height: unspecified
           Weight: unspecified
            Slant: unspecified
       Foreground: unspecified
DistantForeground: unspecified
       Background: unspecified
        Underline: unspecified
         Overline: unspecified
   Strike-through: unspecified
              Box: unspecified
          Inverse: unspecified
          Stipple: unspecified
             Font: unspecified
          Fontset: unspecified
           Extend: unspecified
          Inherit: nano-face-faded

The overdue item has org-scheduled-previously and looks the same in its output.

from nano-emacs.

rougier avatar rougier commented on May 27, 2024

Ok, so it's a matter of adding these two faces. Can you make a PR?

from nano-emacs.

novoid avatar novoid commented on May 27, 2024

I'll try and set up a patch on my machine this weekend probably and generate a PR.

(I'm not using nano any more at the moment mostly because of this issue here.)

from nano-emacs.

novoid avatar novoid commented on May 27, 2024

Ok, so it's a matter of adding these two faces. Can you make a PR?

Here you go.

from nano-emacs.

rougier avatar rougier commented on May 27, 2024

Cannot see it, did you submit it?

from nano-emacs.

Related Issues (20)

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.