Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Latest commit

 

History

History
61 lines (49 loc) · 1.48 KB

README.md

File metadata and controls

61 lines (49 loc) · 1.48 KB

beancount.el: Emacs editor support for beancount

Explanation

This package is forked from https://bitbucket.org/blais/beancount/src/default/editors/emacs/beancount.el .

And made the following change:

  • Read the account names from the specified accounts files and provide it to the autocomplete function.

Installation Examples

doom-emacs

;; packages.el
(package! beancount
  :recipe (:host github :repo "cnsunyour/beancount.el"))

;; config.el
(use-package! beancount
  :defer t
  :bind
  ("C-M-b" . (lambda ()
               (interactive)
               (find-file "~/Dropbox/beancount/main.bean")))
  :mode
  ("\\.bean\\(?:count\\)?\\'" . beancount-mode)
  :config
  (setq beancount-accounts-files
        (directory-files "~/Dropbox/beancount/accounts/"
                         'full
                         (rx ".bean" eos))))

Straight

(use-package beancount
  :straight (beancount
             :type git
             :host github
             :repo "cnsunyour/beancount.el")
  :bind
  ("C-M-b" . (lambda ()
               (interactive)
               (find-file "~/Dropbox/beancount/main.bean")))
  :mode
  ("\\.bean\\(?:count\\)?\\'" . beancount-mode)
  :config
  (setq beancount-accounts-files
        (directory-files "~/Dropbox/beancount/accounts/"
                         'full
                         (rx ".bean" eos))))

License

This code is distributed under the GNU General Public License;