summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-09-09 20:08:51 +0200
committerAlan Pearce2017-09-09 20:08:51 +0200
commitb5919c4a52db991ea9a60410d27751afe6c87f75 (patch)
tree7ce31cb77eb12190714e961999ccf72837ac89a8
parenta9cf2404db130d299bd4208a6657cc1ed4b866bc (diff)
downloadnixfiles-b5919c4a52db991ea9a60410d27751afe6c87f75.tar.lz
nixfiles-b5919c4a52db991ea9a60410d27751afe6c87f75.tar.zst
nixfiles-b5919c4a52db991ea9a60410d27751afe6c87f75.zip
Emacs: Add shortcut to insert current date in beancount
-rw-r--r--emacs/.emacs.d/main.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index e7a1dc1a..6e4a5813 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -1790,6 +1790,8 @@ With prefix TO-CURRENT-BUFFER, insert command output into buffer."
                                               beancount-dir))
     (use-package beancount
       :defines (beancount-use-ido)
+      :bind (:map beancount-mode-map
+                  ("C-c d" . insert-date))
       :config (setq beancount-use-ido nil))))
 ;; #+END_SRC