[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/beancount 0cd55a8038 055/103: beancount.el: Introduce bean
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/beancount 0cd55a8038 055/103: beancount.el: Introduce beancount-insert-date and bind it to M-RET |
Date: |
Mon, 29 Apr 2024 15:59:45 -0400 (EDT) |
branch: elpa/beancount
commit 0cd55a8038f4345a073648402471e8c044b72674
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
beancount.el: Introduce beancount-insert-date and bind it to M-RET
It inserts the date part of a new transaction or other directive.
---
beancount.el | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/beancount.el b/beancount.el
index 1f8edec48d..4a9a53c477 100644
--- a/beancount.el
+++ b/beancount.el
@@ -269,6 +269,7 @@ to align all amounts."
(let ((map (make-sparse-keymap))
(p beancount-mode-map-prefix))
(define-key map (kbd "TAB") #'beancount-tab-dwim)
+ (define-key map (kbd "M-RET") #'beancount-insert-date)
(define-key map (vconcat p [(\')]) #'beancount-insert-account)
(define-key map (vconcat p [(control g)]) #'beancount-transaction-clear)
(define-key map (vconcat p [(l)]) #'beancount-check)
@@ -735,6 +736,12 @@ what that column is and returns it (an integer)."
))
column))
+(defun beancount-insert-date ()
+ "Start a new timestamped directive."
+ (interactive)
+ (unless (bolp) (newline))
+ (insert (format-time-string "%Y-%m-%d") " "))
+
(defvar beancount-install-dir nil
"Directory in which Beancount's source is located.
Only useful if you have not installed Beancount properly in your PATH.")
- [nongnu] elpa/beancount d3eccf1033 005/103: More work on price update generation, positions as csv files, and fixes for files moved., (continued)
- [nongnu] elpa/beancount d3eccf1033 005/103: More work on price update generation, positions as csv files, and fixes for files moved., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 36e82fc5a9 004/103: Made beancount.el very decent, decent enough to start working with it for real., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 9a688bb6cf 008/103: Added an experimental Emacs binding for reformatting the entire file using bean-format., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 3f5e4fcef5 017/103: beancount.el: kill more comment-related Org variables, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount eda34d1767 019/103: beancount.el: Convert the minor mode into a major mode, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 1343aaaf18 014/103: Fixed Emacs functionality to uncomment regions (change submitted by Stefan Monnier)., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount ea357a9077 021/103: beancount.el: Update Copyright and Author, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 8a1557bc96 039/103: beancount.el: Silence byte-compilation warnings about unused arguments, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount f27ea3084d 040/103: (changes for updated Emacs mode), ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount a48aaa7f41 045/103: beacnount.el: Tweak beancount-indent-line, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 0cd55a8038 055/103: beancount.el: Introduce beancount-insert-date and bind it to M-RET,
ELPA Syncer <=
- [nongnu] elpa/beancount 60ef7f56d5 049/103: beancount.el: Fix typos in the comment, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 404876fa6b 015/103: Fixed #302: beancount.el does not fontify account names with single letter components., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 35ef808e1c 026/103: beancount.el: Implement indentation support, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 02fe03ee44 070/103: Fix font lock for accounts, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 2bed4f6b7f 073/103: Setup CI using GitHub Actions, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount f55912cdef 094/103: Add flymake-bean-check, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 9f82d86d36 013/103: Fixed #209: Don't require 'ido. User will have to make sure that beancount-use-ido is false., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount b1fa650c5b 020/103: beancount.el: Add tests, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 6e104dcaf7 024/103: beancount.el: Revamp fontification, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 8de6790f46 029/103: beancount.el: Add support to highlight transaction at point, ELPA Syncer, 2024/04/29