about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--config.org21
1 files changed, 21 insertions, 0 deletions
diff --git a/config.org b/config.org index a0a354c..2ee82e4 100644 --- a/config.org +++ b/config.org
@@ -1251,6 +1251,27 @@ exist after each headings's drawers."
1251 (define-key acdw/map "g" #'magit-status) 1251 (define-key acdw/map "g" #'magit-status)
1252#+end_src 1252#+end_src
1253 1253
1254** Beancount mode
1255
1256#+begin_src emacs-lisp
1257 (straight-use-package '(beancount-mode
1258 :host github
1259 :repo "beancount/beancount-mode"))
1260 (require 'beancount)
1261
1262 (add-to-list 'auto-mode-alist '("\\.beancount\\'" . beancount-mode))
1263
1264 (defun acdw/disable-aggressive-indent ()
1265 "Turn `aggressive-indent-mode' off for a buffer."
1266 (aggressive-indent-mode -1))
1267
1268 (add-hook 'beancount-mode-hook #'outline-minor-mode)
1269 (add-hook 'beancount-mode-hook #'acdw/disable-aggressive-indent)
1270
1271 (define-key beancount-mode-map (kbd "M-n") #'outline-next-visible-heading)
1272 (define-key beancount-mode-map (kbd "M-p") #'outline-previous-visible-heading)
1273#+end_src
1274
1254* Appendices 1275* Appendices
1255 1276
1256** Emacs' files 1277** Emacs' files