 ;;; lang/beancount/config.el -*- lexical-binding: t; -*-
 
-(use-package! beancount-mode
+(use-package! beancount
   :mode "\\.beancount\\'"
   :init
   (add-hook 'beancount-mode-hook #'outline-minor-mode)

        (:prefix ("i" . "insert")
         "a" #'beancount-insert-account
         "p" #'beancount-insert-prices
         "d" #'beancount-insert-date)))

  (setq beancount-electric-currency t)

  (map! :map beancount-mode-map
        "TAB" (cmds! (and outline-minor-mode (outline-on-heading-p))
                     #'beancount-outline-cycle
                     #'indent-according-to-mode)
        :localleader
        "b" #'+beancount/balance
        "c" #'beancount-check
