ledger-mode icon indicating copy to clipboard operation
ledger-mode copied to clipboard

How to customize / switch pending and cleared faces?

Open markokocic opened this issue 4 years ago • 1 comments

In my personal workflow, I treat transactions with * as pending, and without as cleared, opposite from ledger defaults.

Is it possible to configure ledger-mode to invert font-faces used in the journal file? For example, to have cleared transactions displayed in red, and pending in blue?

markokocic avatar Sep 15 '21 16:09 markokocic

I'm not aware that there's any built-in way to invert the meaning of pending and cleared, and I doubt it would be generally desirable, but you could presumably redefine the faces locally in your config.

purcell avatar Sep 16 '21 06:09 purcell

What worked for me is to put the following config into my init file:

  (custom-set-faces
   '(ledger-font-payee-cleared-face ((t (:inherit error))))
   '(ledger-font-payee-uncleared-face ((t (:inherit success)))))

markokocic avatar Jan 10 '23 17:01 markokocic