[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/csv2ledger 97906fa4ce 016/190: Add user option `c2l-title-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/csv2ledger 97906fa4ce 016/190: Add user option `c2l-title-function`. |
Date: |
Sun, 2 Jun 2024 15:59:42 -0400 (EDT) |
branch: elpa/csv2ledger
commit 97906fa4ce50f230795a7520a46207e9a2e1ffc2
Author: Joost Kremers <joostkremers@fastmail.fm>
Commit: Joost Kremers <joostkremers@fastmail.fm>
Add user option `c2l-title-function`.
---
csv2ledger.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/csv2ledger.el b/csv2ledger.el
index 8b3ac64f32..56c6ed7230 100644
--- a/csv2ledger.el
+++ b/csv2ledger.el
@@ -123,6 +123,14 @@ return a string."
:type '(repeat (cons (symbol :tag "Field") function))
:group 'csv2ledger)
+(defcustom c2l-title-function #'c2l-payee-or-sender
+ "Function to create a title.
+The function should take as argument an entry alist of
+field-value pairs and should return a string. The string
+returned is used as the title of the ledger entry,"
+ :type 'function
+ :group 'csv2ledger)
+
(defun c2l-parse-date (date)
"Convert DATE from \"17.10.2022\" to \"2022-10-17\"."
- [nongnu] elpa/csv2ledger 9dd9708b94 064/190: Rename `c2l-field-parse-functions` to `c2l-field-modify-functions`, (continued)
- [nongnu] elpa/csv2ledger 9dd9708b94 064/190: Rename `c2l-field-parse-functions` to `c2l-field-modify-functions`, ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger e0be339259 068/190: Add function c2l-title-is-counterpart., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 3e07f6edbe 063/190: Update doc string of `c2l-csv-columns`., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger aaf8db1085 058/190: Make c2l-matcher-regexes public., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 0d3a88f8bc 062/190: Rename `valuation` field to `effective`., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger fd54efa6ce 030/190: Add command `c2l-set-base-account`., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 19b3176424 049/190: Add flycheck temp files to .gitignore., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 03b2aeb4a7 056/190: Update the README., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger c7d1db033c 015/190: Add user option `c2l-field-parse-functions`., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger c01946ab58 027/190: Do not try to read files that do not exist., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 97906fa4ce 016/190: Add user option `c2l-title-function`.,
ELPA Syncer <=
- [nongnu] elpa/csv2ledger 5dd5e36a07 018/190: Add user option `c2l-title-match-fields`., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 0326110f7a 011/190: Update doc string of `c2l-read-account-matchers`., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 09f023793a 008/190: Declare Emacs 28.1 as a dependency., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger aa435296c8 014/190: Update doc string of `c2l-csv-columns`., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger a7b24edc4d 033/190: Start README.md, ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 05b1225a0b 061/190: Fix alignment., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger a9bc221c12 051/190: Require subr-x for string functions., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 482658ee03 052/190: Remove dependency on ledger-mode., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 89a311301c 069/190: New user option c2l-amount-function., ELPA Syncer, 2024/06/03
- [nongnu] elpa/csv2ledger 02a6ebc5b3 019/190: Add user option `c2l-auto-reconcile`., ELPA Syncer, 2024/06/03