Fanael/rainbow-delimiters@a32b39bdfe -> Fanael/rainbow-delimiters@f40ece58df Wilfred/helpful@c57ff0d284 -> Wilfred/helpful@66ba816b26 domtronn/all-the-icons.el@f491f39c21 -> domtronn/all-the-icons.el@be9d5dcda9 emacs-compat/compat@75d0b8527f -> emacs-compat/compat@ecf53005ab emacs-straight/project@6c41ad68ed -> emacs-straight/project@ce140cdb70 joddie/pcre2el@b941ed8a96 -> joddie/pcre2el@018531ba0c jscheid/dtrt-indent@be07f4979a -> jscheid/dtrt-indent@e0630f74f9 justbur/emacs-which-key@df6b0cb844 -> justbur/emacs-which-key@4d20bc8525
29 lines
1 KiB
EmacsLisp
29 lines
1 KiB
EmacsLisp
;;; lang/beancount/config.el -*- lexical-binding: t; -*-
|
|
|
|
(use-package! beancount
|
|
:mode ("\\.beancount\\'" . beancount-mode)
|
|
:hook (beancount-mode . outline-minor-mode)
|
|
:config
|
|
(setq beancount-electric-currency t)
|
|
|
|
(when (modulep! +lsp)
|
|
(add-hook 'beancount-mode-local-vars-hook #'lsp! 'append))
|
|
|
|
(map! :map beancount-mode-map
|
|
"TAB" (cmds! (and outline-minor-mode (outline-on-heading-p))
|
|
#'beancount-outline-cycle
|
|
#'indent-according-to-mode)
|
|
:m "[[" #'+beancount/previous-transaction
|
|
:m "]]" #'+beancount/next-transaction
|
|
:localleader
|
|
"b" #'+beancount/balance
|
|
"c" #'beancount-check
|
|
"l" #'beancount-linked
|
|
"q" #'beancount-query
|
|
"x" #'beancount-context
|
|
(:prefix ("i" . "insert")
|
|
"c" #'+beancount/clone-transaction
|
|
"C" #'+beancount/clone-this-transaction
|
|
"a" #'beancount-insert-account
|
|
"p" #'beancount-insert-prices
|
|
"d" #'beancount-insert-date)))
|