Add support for ledger-mode

Thanks to Pengji Zhang for the feedback in issue 202:
<https://gitlab.com/protesilaos/modus-themes/-/issues/202>.
This commit is contained in:
Protesilaos Stavrou 2021-05-26 19:05:19 +03:00
parent 6aa206aadf
commit 91a90897d3
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
3 changed files with 123 additions and 110 deletions

View file

@ -47,8 +47,7 @@ themes, and provides every other piece of information pertinent to them.
does not yet form part of the latest tagged commit, is explicitly marked
as such.
Current development target is 1.5.0-dev. This manual was built on
2021-05-25 20:26 +0300.
Current development target is 1.5.0-dev.
* Menu:
@ -2877,6 +2876,7 @@ have lots of extensions, so the “full support” may not be 100% true…
• jupyter
• kaocha-runner
• keycast
• ledger-mode
• line numbers (display-line-numbers-mode and global variant)
• lsp-mode
• lsp-ui
@ -3894,14 +3894,14 @@ Ideas and user feedback
Kevin Fleming, Kévin Le Gouguec, Kostadin Ninev, Len Trigg, Manuel
Uberti, Mark Burton, Markus Beppler, Mauro Aranda, Michael
Goldenberg, Morgan Smith, Murilo Pereira, Nicky van Foreest,
Nicolas De Jaeghere, Paul Poloskov, Pete Kazmier, Peter Wu, Philip
K., Pierre Téchoueyres, Roman Rudakov, Ryan Phillips, Rudolf
Adamkovič, Sam Kleinman, Shreyas Ragavan, Simon Pugnet, Tassilo
Horn, Thibaut Verron, Trey Merkley, Togan Muftuoglu, Toon Claes,
Uri Sharf, Utkarsh Singh, Vincent Foley. As well as users: Ben,
CsBigDataHub1, Emacs Contrib, Eugene, Fourchaux, Fredrik, Moesasji,
Nick, TheBlob42, Trey, bepolymathe, doolio, fleimgruber, iSeeU,
jixiuf, okamsn, pRot0ta1p.
Nicolas De Jaeghere, Paul Poloskov, Pengji Zhang, Pete Kazmier,
Peter Wu, Philip K., Pierre Téchoueyres, Roman Rudakov, Ryan
Phillips, Rudolf Adamkovič, Sam Kleinman, Shreyas Ragavan, Simon
Pugnet, Tassilo Horn, Thibaut Verron, Trey Merkley, Togan
Muftuoglu, Toon Claes, Uri Sharf, Utkarsh Singh, Vincent Foley. As
well as users: Ben, CsBigDataHub1, Emacs Contrib, Eugene,
Fourchaux, Fredrik, Moesasji, Nick, TheBlob42, Trey, bepolymathe,
doolio, fleimgruber, iSeeU, jixiuf, okamsn, pRot0ta1p.
Packaging
Basil L. Contovounesios, Eli Zaretskii, Glenn Morris, Mauro Aranda,
@ -4580,97 +4580,97 @@ B.3 Concept index

Tag Table:
Node: Top860
Node: Overview6691
Node: How do the themes look like8234
Node: Learn about the latest changes8742
Node: Installation9124
Node: Install manually from source9605
Node: Install from the archives10430
Node: Install on GNU/Linux11207
Node: Debian 11 Bullseye11655
Node: GNU Guix11965
Node: Enable and load12248
Node: Sample configuration for use-package15237
Node: Differences between loading and enabling16606
Node: Customization Options18646
Node: Custom reload theme24432
Node: Success' color-code25019
Node: Bold constructs25956
Node: Slanted constructs26573
Node: Syntax styles27120
Node: No mixed fonts28758
Node: Link styles29853
Node: Command prompts31427
Node: Mode line32626
Node: Completion UIs36600
Node: Mail citations38471
Node: Fringes39324
Node: Language checkers39986
Node: Line highlighting41934
Node: Line numbers43447
Node: Matching parentheses44525
Node: Active region45415
Node: Diffs46633
Node: Org mode blocks48572
Node: Org agenda habits50457
Node: Heading styles52292
Node: Scaled headings56522
Node: Scaled heading sizes57125
Node: UI typeface60259
Node: Headings' typeface61105
Node: Advanced customization (do-it-yourself)61729
Node: Per-theme customization settings (DIY)63092
Node: Case-by-case face specs using the themes' palette (DIY)64438
Node: Face specs at scale using the themes' palette (DIY)68902
Node: Remap face with local value (DIY)73719
Node: Cycle through arbitrary colors (DIY)76197
Node: Override colors (DIY)82763
Node: Override color saturation (DIY)87656
Node: Font configurations for Org and others (DIY)93409
Ref: Font configurations for Org and others (DIY)-Footnote-195837
Node: Custom Org user faces (DIY)96024
Node: Update Org block delimiter fontification (DIY)99396
Node: Measure color contrast (DIY)101356
Node: Load theme depending on time of day (DIY)104150
Node: Backdrop for pdf-tools (DIY)105190
Node: A theme-agnostic hook for theme loading (DIY)107952
Node: Face coverage110342
Node: Supported packages110811
Node: Indirectly covered packages117552
Node: Notes on individual packages118106
Node: Note on inline Latex in Org buffers118930
Node: Note on dimmerel119490
Node: Note on display-fill-column-indicator-mode120975
Node: Note on mmm-modeel background colors122596
Node: Note for prism124975
Node: Note for god-mode128201
Node: Note on company-mode overlay pop-up129873
Ref: Note on company-mode overlay pop-up-Footnote-1130561
Ref: Note on company-mode overlay pop-up-Footnote-2130628
Node: Note on ERC escaped color sequences130683
Ref: Note on ERC escaped color sequences-Footnote-1132109
Node: Note on powerline or spaceline132219
Node: Note on SHR colors132631
Node: Note on EWW and Elfeed fonts (SHR fonts)133066
Node: Note on Helm grep133811
Node: Note on vc-annotate-background-mode135298
Node: Note on pdf-tools link hints136183
Node: Frequently Asked Questions (FAQ)138615
Node: Is the contrast ratio about adjacent colors?139189
Node: What does it mean to avoid exaggerations?140702
Node: Why are colors mostly variants of blue magenta cyan?142537
Node: What is the best setup for legibility?146884
Node: Contributing149495
Node: Sources of the themes149898
Node: Issues you can help with150636
Node: Patches require copyright assignment to the FSF151836
Node: Acknowledgements154131
Node: Meta156561
Node: GNU Free Documentation License158558
Node: Indices183910
Node: Function index184089
Node: Variable index185326
Node: Concept index187467
Node: Overview6641
Node: How do the themes look like8184
Node: Learn about the latest changes8692
Node: Installation9074
Node: Install manually from source9555
Node: Install from the archives10380
Node: Install on GNU/Linux11157
Node: Debian 11 Bullseye11605
Node: GNU Guix11915
Node: Enable and load12198
Node: Sample configuration for use-package15187
Node: Differences between loading and enabling16556
Node: Customization Options18596
Node: Custom reload theme24382
Node: Success' color-code24969
Node: Bold constructs25906
Node: Slanted constructs26523
Node: Syntax styles27070
Node: No mixed fonts28708
Node: Link styles29803
Node: Command prompts31377
Node: Mode line32576
Node: Completion UIs36550
Node: Mail citations38421
Node: Fringes39274
Node: Language checkers39936
Node: Line highlighting41884
Node: Line numbers43397
Node: Matching parentheses44475
Node: Active region45365
Node: Diffs46583
Node: Org mode blocks48522
Node: Org agenda habits50407
Node: Heading styles52242
Node: Scaled headings56472
Node: Scaled heading sizes57075
Node: UI typeface60209
Node: Headings' typeface61055
Node: Advanced customization (do-it-yourself)61679
Node: Per-theme customization settings (DIY)63042
Node: Case-by-case face specs using the themes' palette (DIY)64388
Node: Face specs at scale using the themes' palette (DIY)68852
Node: Remap face with local value (DIY)73669
Node: Cycle through arbitrary colors (DIY)76147
Node: Override colors (DIY)82713
Node: Override color saturation (DIY)87606
Node: Font configurations for Org and others (DIY)93359
Ref: Font configurations for Org and others (DIY)-Footnote-195787
Node: Custom Org user faces (DIY)95974
Node: Update Org block delimiter fontification (DIY)99346
Node: Measure color contrast (DIY)101306
Node: Load theme depending on time of day (DIY)104100
Node: Backdrop for pdf-tools (DIY)105140
Node: A theme-agnostic hook for theme loading (DIY)107902
Node: Face coverage110292
Node: Supported packages110761
Node: Indirectly covered packages117521
Node: Notes on individual packages118075
Node: Note on inline Latex in Org buffers118899
Node: Note on dimmerel119459
Node: Note on display-fill-column-indicator-mode120944
Node: Note on mmm-modeel background colors122565
Node: Note for prism124944
Node: Note for god-mode128170
Node: Note on company-mode overlay pop-up129842
Ref: Note on company-mode overlay pop-up-Footnote-1130530
Ref: Note on company-mode overlay pop-up-Footnote-2130597
Node: Note on ERC escaped color sequences130652
Ref: Note on ERC escaped color sequences-Footnote-1132078
Node: Note on powerline or spaceline132188
Node: Note on SHR colors132600
Node: Note on EWW and Elfeed fonts (SHR fonts)133035
Node: Note on Helm grep133780
Node: Note on vc-annotate-background-mode135267
Node: Note on pdf-tools link hints136152
Node: Frequently Asked Questions (FAQ)138584
Node: Is the contrast ratio about adjacent colors?139158
Node: What does it mean to avoid exaggerations?140671
Node: Why are colors mostly variants of blue magenta cyan?142506
Node: What is the best setup for legibility?146853
Node: Contributing149464
Node: Sources of the themes149867
Node: Issues you can help with150605
Node: Patches require copyright assignment to the FSF151805
Node: Acknowledgements154100
Node: Meta156544
Node: GNU Free Documentation License158541
Node: Indices183893
Node: Function index184072
Node: Variable index185309
Node: Concept index187450

End Tag Table

View file

@ -2782,6 +2782,7 @@ have lots of extensions, so the "full support" may not be 100% true…
+ jupyter
+ kaocha-runner
+ keycast
+ ledger-mode
+ line numbers (~display-line-numbers-mode~ and global variant)
+ lsp-mode
+ lsp-ui
@ -3761,14 +3762,14 @@ The Modus themes are a collective effort. Every bit of work matters.
Haman, Joshua O'Connor, Kevin Fleming, Kévin Le Gouguec, Kostadin
Ninev, Len Trigg, Manuel Uberti, Mark Burton, Markus Beppler, Mauro
Aranda, Michael Goldenberg, Morgan Smith, Murilo Pereira, Nicky van
Foreest, Nicolas De Jaeghere, Paul Poloskov, Pete Kazmier, Peter Wu,
Philip K., Pierre Téchoueyres, Roman Rudakov, Ryan Phillips, Rudolf
Adamkovič, Sam Kleinman, Shreyas Ragavan, Simon Pugnet, Tassilo Horn,
Thibaut Verron, Trey Merkley, Togan Muftuoglu, Toon Claes, Uri Sharf,
Utkarsh Singh, Vincent Foley. As well as users: Ben, CsBigDataHub1,
Emacs Contrib, Eugene, Fourchaux, Fredrik, Moesasji, Nick, TheBlob42,
Trey, bepolymathe, doolio, fleimgruber, iSeeU, jixiuf, okamsn,
pRot0ta1p.
Foreest, Nicolas De Jaeghere, Paul Poloskov, Pengji Zhang, Pete
Kazmier, Peter Wu, Philip K., Pierre Téchoueyres, Roman Rudakov, Ryan
Phillips, Rudolf Adamkovič, Sam Kleinman, Shreyas Ragavan, Simon
Pugnet, Tassilo Horn, Thibaut Verron, Trey Merkley, Togan Muftuoglu,
Toon Claes, Uri Sharf, Utkarsh Singh, Vincent Foley. As well as
users: Ben, CsBigDataHub1, Emacs Contrib, Eugene, Fourchaux, Fredrik,
Moesasji, Nick, TheBlob42, Trey, bepolymathe, doolio, fleimgruber,
iSeeU, jixiuf, okamsn, pRot0ta1p.
+ Packaging :: Basil L.{{{space()}}} Contovounesios, Eli Zaretskii, Glenn
Morris, Mauro Aranda, Richard Stallman, Stefan Kangas (core Emacs),

View file

@ -5,7 +5,7 @@
;; Author: Protesilaos Stavrou <info@protesilaos.com>
;; URL: https://gitlab.com/protesilaos/modus-themes
;; Version: 1.4.0
;; Last-Modified: <2021-05-26 17:38:42 +0300>
;; Last-Modified: <2021-05-26 19:04:12 +0300>
;; Package-Requires: ((emacs "26.1"))
;; Keywords: faces, theme, accessibility
@ -246,6 +246,7 @@
;; jupyter
;; kaocha-runner
;; keycast
;; ledger-mode
;; line numbers (`display-line-numbers-mode' and global variant)
;; lsp-mode
;; lsp-ui
@ -5202,6 +5203,17 @@ by virtue of calling either of `modus-themes-load-operandi' and
;;;;; keycast
`(keycast-command ((,class :inherit bold :foreground ,blue-active)))
`(keycast-key ((,class :background ,blue-active :foreground ,bg-main)))
;;;;; ledger-mode
`(ledger-font-auto-xact-face ((,class :foreground ,magenta)))
`(ledger-font-account-name-face ((,class :foreground ,fg-special-cold)))
`(ledger-font-directive-face ((,class :foreground ,magenta-alt-other)))
`(ledger-font-posting-date-face ((,class :inherit bold :foreground ,fg-main)))
`(ledger-font-periodic-xact-face ((,class :foreground ,cyan-alt-other)))
`(ledger-font-posting-amount-face ((,class :foreground ,fg-special-mild)))
`(ledger-font-payee-cleared-face ((,class :foreground ,blue-alt)))
`(ledger-font-payee-pending-face ((,class :foreground ,yellow)))
`(ledger-font-payee-uncleared-face ((,class :foreground ,red-alt-other)))
`(ledger-font-xact-highlight-face ((,class :background ,bg-hl-alt)))
;;;;; line numbers (display-line-numbers-mode and global variant)
`(line-number
((,class :inherit default