Hi Oscar,
Oscar <
orzya...@gmail.com> writes:
> I can't seem to have auto-completion to work when I press tab in
> ledger-mode in Emacs .
>
> Previous versions I never had this problem. Is this a bug? It does indent
> but pressing tab doesn't do the autocomplete.
This was changed recently; I noticed it too when I recently upgraded
ledger-mode. Discussion here:
https://github.com/ledger/ledger-mode/pull/174
To get (something like) the old behavior back, you can do:
(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)))
I found that this solution was not quite satisfying; whatever the old
version did to guess the ordering of completions was better. But I also
recently decided to try out Ivy for completion; with ivy-mode on, I find
this is enough:
(add-hook 'ledger-mode-hook
(lambda ()
(setq-local tab-always-indent 'complete)
(setq-local completion-cycle-threshold t)))
--
HTH,
Richard