--
---
You received this message because you are subscribed to the Google Groups "Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/17a37eb7-20ee-41ac-938e-973c27297b9co%40googlegroups.com.
On my Emacs setup, I have company mode enabled and typing a part of the Payee automatically completes the Payee entry.I tried disabling Company mode and typing in part of the Payee name, this time I have to Tab to initiate completion.Tabbing further then cycles through different existing Payees. I have the following in my .emacs(add-hook 'ledger-mode-hook(lambda ()(setq-local tab-always-indent 'complete) ;; I guess this does the job of completion of Payee Entries..(setq-local completion-cycle-threshold t)(setq-local ledger-complete-in-steps t)(setq-local ledger-clear-whole-transaction t)))- Ghanashyam
On Mon, 27 Jul 2020 at 13:02, Oliver Hardy <ohar...@gmail.com> wrote:
--Following the ledger-mode docs, in emacs I do C-c C-a. This brings up a calendar with today's date highlighted. I'm then instructedto type a close match to the payee. Hitting enter then enters the date in my ~/journal.ledger file and that's it. No further details eventhough the payee I'm entering appears several times through out the file.What am I doing Wrong?Thank you.
---
You received this message because you are subscribed to the Google Groups "Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ledge...@googlegroups.com.
;; use init file as the one provided under --load-init
(setq user-init-file (or load-file-name (buffer-file-name)))
(setq user-emacs-directory (file-name-directory user-init-file))
;; setup ledger mode
(add-to-list 'load-path (expand-file-name "~/.emacs.d/elpa/ledger-mode-20200530.1710/"))
(require 'ledger-mode)
(autoload 'ledger-mode "ledger-mode" "A major mode for Ledger" t)
(add-to-list 'auto-mode-alist '("\\.ledger$" . ledger-mode))
;; some handy ledger mode hooks
(add-hook 'ledger-mode-hook
(lambda ()
(setq-local tab-always-indent 'complete)
(setq-local completion-cycle-threshold t)
(setq-local ledger-complete-in-steps t)
(setq-local ledger-clear-whole-transaction t)
emacs -q --load init.el
2019/10/23 * Opening Balance
Assets:Checking:bofa $25.00
Liabilities:cc-visabofa $0.00
Equity:
2020/07/26 * Salary
Income:Salary:biweekly -$1000.00
Assets:Checking:bofa
2020/07/28 * Ralphs Purchase
Expenses:Food:Grocery:ralphs $100.00
Assets:Checking:bofa
2020/07/28 * Vonns Shopping
Expenses:Food:Grocery:vonns $200.00
Assets:Checking:bofa
2020/07/28 * Chevron Gas
Expenses:Transportation:Auto:Gas:chevron $30.00
Assets:Checking:bofa
To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/77cbc79c-0bbd-4396-aa01-8da11bc1f422o%40googlegroups.com.