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
Separate faces for year, month, day, hour, minute, and second in dired fontification please #276
Comments
Three big examples where it's really nice to clearly see the datetime when looking at the file names:
|
Thanks to mentalisttraceur for suggesting the idea in issue 276: <#276>.
Done, thank you! Quick sample with the (defun my-modus-themes-denote-faces (&rest _)
(modus-themes-with-colors
(custom-set-faces
`(denote-faces-year ((,c :foreground ,cyan)))
`(denote-faces-month ((,c :foreground ,magenta-warmer)))
`(denote-faces-day ((,c :foreground ,cyan)))
`(denote-faces-time-delimiter ((,c :foreground ,fg-main)))
`(denote-faces-hour ((,c :foreground ,magenta-warmer)))
`(denote-faces-minute ((,c :foreground ,cyan)))
`(denote-faces-second ((,c :foreground ,magenta-warmer))))))
(add-hook 'modus-themes-post-load-hook #'my-modus-themes-denote-faces) |
Nice, thank you! |
I'm thinking, basically:
Keep
denote-faces-date
anddenote-faces-time
, for backwards compatibility. The new faces will inherit from them, so nothing will change for anyone by default.Add
denote-faces-year
,denote-faces-month
,denote-faces-day
(inherit fromdenote-faces-date
)denote-faces-hour
,denote-faces-minute
, anddenote-faces-second
(inherit fromdenote-faces-time
).Split
"\\(?1:[0-9]\\{8\\}\\)\\(?10:T\\)\\(?2:[0-9]\\{6\\}\\)"
into(Personally I would renumber the groups but I just incremented from what was already there.)
Then users who want to boost visual parsing of the date and time can find and configure the faces individually.
The text was updated successfully, but these errors were encountered: