diff options
author | Case Duckworth | 2021-01-02 10:04:06 -0600 |
---|---|---|
committer | Case Duckworth | 2021-01-02 10:04:06 -0600 |
commit | e584d855e7ccd3fa7261ba019b80be217b8c92f2 (patch) | |
tree | cf764b5c924d18522bf5571cf3fa790de92408fe | |
parent | Add mouse scrolling binds (diff) | |
download | emacs-e584d855e7ccd3fa7261ba019b80be217b8c92f2.tar.gz emacs-e584d855e7ccd3fa7261ba019b80be217b8c92f2.zip |
Add beancount-mode
-rw-r--r-- | config.org | 21 |
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 |