You may create the init.el or .emacs file may be created in your
Linux home directory or .emacs.d directory. Emacs automatically
searches for the init.el or .emacs file in these directories.
I have the following added to my init.el file, you may refer this
to enable beancount-mode in Emacs
;; beancount setup
;; I cloned the beancount-mode repository to ~/repo/beancount-mode directory
(add-to-list 'load-path "~/repo/beancount-mode/")
(require 'beancount)
(add-to-list 'auto-mode-alist '("\\.beancount\\'" . beancount-mode))
;; beancount outline-minor-mode - enables folding of lines starting with *
or ;;;
(add-hook 'beancount-mode-hook #'outline-minor-mode)
(add-hook 'beancount-mode-hook #'linum-on)
(add-hook 'beancount-mode-hook #'column-number-mode)
(define-key beancount-mode-map (kbd "C-c C-n")
#'outline-next-visible-heading)
(define-key beancount-mode-map (kbd "C-c C-p")
#'outline-previous-visible-heading)
(defun my-enable-beancount-electric-indent
(setq-local electric-indent-chars t))
/gp
On Thu, 18 Feb 2021 at 19:08, Zhang Tianci <[email protected]> wrote:
> Thanks in advance to anyone who helps me out!
>
> I am not a programmer and only have very basic programming knowledge, but
> I love the elegancy of Beancount.
> I have Emacs 27 x86_64 installed on my Window computer, now I am
> completely lost on what to do next.
> I have looked at the README of beancount-mode
> <https://github.com/beancount/beancount-mode> and the documentation
> <https://www.gnu.org/software/emacs/manual/html_node/emacs/Major-Modes.html>
> of Emacs as well as searched online, but all the instructions make no sense
> to me. I can't even find the ~/.emacs.d/init.el file in my Emacs directory.
> I need basic instruction on how to configure Emacs so that it works with
> .beancount file.
>
> Sorry for asking such basic question, thanks for any help!!
>
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/beancount/99cc8b91-2825-4335-947f-69add3534da8n%40googlegroups.com
> <https://groups.google.com/d/msgid/beancount/99cc8b91-2825-4335-947f-69add3534da8n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
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 on the web visit
https://groups.google.com/d/msgid/beancount/CABieCERdy0xoEXjiUqAOUSVm%2BAROD0-TppNqawWi6cTmEkpOQQ%40mail.gmail.com.