For new users of emacs, here's the sample use-package declaration for using 
beancount-mode:

Ensure that the following line is present somwhere near the beginning of 
your init.el below (package-initialize) declaration:
(add-to-list 'package-archives '("gnu"   . 
"https://elpa.gnu.org/packages/";)) 

The following lines can be anywhere in init.el

(use-package beancount
  :ensure t
  :commands beancount-mode
  :hook
  (beancount-mode . outline-minor-mode)
  ;; (beancount-mode . flymake-bean-check-enable)
  :config
  (setq-local electric-indent-chars nil)
  :bind (:map beancount-mode-map
              ("C-c C-n" . outline-next-visible-heading)
              ("C-c C-p" . outline-previous-visible-heading)
              ("C-c C-u" . outline-up-heading)
              ("C-c C-b" . outline-backward-same-level)
              ("C-c C-f" . outline-forward-same-level)
              ("C-c C-a" . outline-show-all)
              ("C-c TAB" . beancount-outline-cycle)
              ))

Remember to uncomment line   (beancount-mode . flymake-bean-check-enable) 
if you use flymake.

For those with multiple files and using emacs, refer to this blogpost 
"Auto-complete 
Accounts From Other Beancount Files in Emacs" at 
https://whatacold.io/blog/2022-09-10-emacs-beancount-account-files/

Posting in the mailing list so that new emacs users may find this quickly. 

Regards,
Prabu

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/beancount/8a0dcfd5-b0b9-4d39-b723-b362324a529dn%40googlegroups.com.

Reply via email to