Browse Source

small fixes for beancount

master
Marc Pohling 6 years ago
parent
commit
43bfcba2f7
1 changed files with 16 additions and 5 deletions
  1. 21
      config.org

21
config.org

@ -634,16 +634,18 @@ deactivate
; :load-path "/opt/beancount/elisp/" ; :load-path "/opt/beancount/elisp/"
;; :ensure t ;; :ensure t
; :mode ("\\.beancount$" . beancount-mode) ; :mode ("\\.beancount$" . beancount-mode)
(load "/home/marc/.emacs.d/elisp/beancount-mode.el") ; somehow load-path in use-package doesn't work
(use-package beancount (use-package beancount
:load-path "/home/marc/.emacs.d/elisp/"
:load-path "/home/marc/.emacs.d/elisp"
:mode ("\\.beancount$" . bean-mode) :mode ("\\.beancount$" . bean-mode)
)
(setenv "PATH"
:init
(add-hook 'bean-mode-hook 'company/beancount-mode-hook)
(setenv "PATH"
(concat (concat
"/opt/beancount/bin:" "/opt/beancount/bin:"
(getenv "PATH")) (getenv "PATH"))
)
) )
(add-hook 'beancount-mode-hook 'company/beancount-mode-hook)
) )
#+end_src #+end_src
@ -851,7 +853,7 @@ Backend configuration for beancount
#+begin_src emacs-lisp #+begin_src emacs-lisp
(defun company/beancount-mode-hook() (defun company/beancount-mode-hook()
(set (make-local-variable 'company-backends) (set (make-local-variable 'company-backends)
'((company-dabbrev) company-capf company-files))
'((company-beancount company-dabbrev) company-capf company-files))
(company-mode t) (company-mode t)
) )
#+end_src #+end_src
@ -928,6 +930,15 @@ Maybe add [[https://github.com/hlissner/emacs-company-dict][company-dict]]? It's
(add-hook 'emacs-lisp-mode-hook 'company/elisp-mode-hook) (add-hook 'emacs-lisp-mode-hook 'company/elisp-mode-hook)
#+end_src #+end_src
Add some helpers to handle and understand macros
#+begin_src emacs-lisp
(use-package macrostep
:ensure t
:init
(define-key emacs-lisp-mode-map (kbd "C-c e") 'macrostep-expand)
(define-key emacs-lisp-mode-map (kbd "C-c c") 'macrostep-collapse))
#+end_src
** Python ** Python
Systemwide following packages need to be installed: Systemwide following packages need to be installed:

Loading…
Cancel
Save