summary refs log tree commit diff stats
path: root/emacs/.emacs.d
diff options
context:
space:
mode:
authorAlan Pearce2018-08-20 12:09:41 +0200
committerAlan Pearce2018-08-20 12:09:41 +0200
commita56734fbeef2a71d6ec31cca7c059c28d4e32b63 (patch)
tree21ae43a680cfdafd8f407b653c73e5fa33999c0e /emacs/.emacs.d
parent677d5cbcfe5a2a6ce54a8961b45e679dc95ef8d7 (diff)
downloadnixfiles-a56734fbeef2a71d6ec31cca7c059c28d4e32b63.tar.lz
nixfiles-a56734fbeef2a71d6ec31cca7c059c28d4e32b63.tar.zst
nixfiles-a56734fbeef2a71d6ec31cca7c059c28d4e32b63.zip
emacs: dedicate a prefix to beancount
Diffstat (limited to 'emacs/.emacs.d')
-rw-r--r--emacs/.emacs.d/main.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index ff3c53f4..fbd6e9ca 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -1568,11 +1568,14 @@ With two prefix arguments, write out the day and month name."
     (add-to-list 'load-path (expand-file-name "editors/emacs/"
                                               beancount-dir))
     (use-package beancount
-      :defines (beancount-use-ido)
+      :defines (beancount-use-ido
+                beancount-mode-map
+                beancount-mode-map-prefix)
       :commands beancount-mode
       :bind (:map beancount-mode-map
                   ("C-c d" . insert-date))
-      :config (setq beancount-use-ido nil))))
+      :config (setq beancount-use-ido nil
+                    beancount-mode-map-prefix (kbd ", a")))))
 
 ;;;;; Markdown