|
|
@ -1941,16 +1941,20 @@ deactivate |
|
|
|
:defer t |
|
|
|
:mode |
|
|
|
("\\.beancount$" . beancount-mode) |
|
|
|
:hook |
|
|
|
(beancount-mode . my--beancount-company) |
|
|
|
:init |
|
|
|
(add-hook 'beancount-mode-hook 'company/beancount-mode-hook) |
|
|
|
; :hook |
|
|
|
; (beancount-mode . my/beancount-company) |
|
|
|
; :init |
|
|
|
; (add-hook 'beancount-mode-hook 'company/beancount-mode-hook) |
|
|
|
:config |
|
|
|
(defun my--beancount-company () |
|
|
|
(defun my/beancount-company () |
|
|
|
(setq-local completion-at-point-functions #'beancount-complete-at-point nil t)) |
|
|
|
; (mapcar #'cape-company-to-capf |
|
|
|
; (list #'company-beancount #'company-dabbrev)))) |
|
|
|
(defun my--beancount-companyALT () |
|
|
|
(set (make-local-variable 'company-backends) |
|
|
|
'(company-beancount))) |
|
|
|
(setq beancount-filename-main "/home/marc/Archiv/Finanzen/Transaktionen/transactions.beancount")) |
|
|
|
#+END_SRC |
|
|
|
+END_SRC |
|
|
|
|
|
|
|
To support org-babel, check if it can find the symlink to ob-beancount.el |
|
|
|
|
|
|
|