>From https://github.com/ledger/ledger-mode/pull/174, it looks like the
>functionality was not removed but replaced by something that I didn’t
>understand yet. It worked for me the code:
(add-hook 'ledger-mode-hook
(lambda ()
(setq-local tab-always-indent 'complete)
(setq-local completion-cycle-threshold t)))
But I am curious to understand the discussion above. Does anyone here knows
what was the idea? What is the best solution for completion (mainly of account
names in my case) in ledger mode?
Best,
--
Alexandre Rademaker
http://arademaker.github.io
> On 23 Sep 2019, at 16:16, Richard Lawrence <[email protected]> wrote:
>
> Hi Oscar,
>
> Oscar <[email protected]> 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)))
>
>
--
---
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ledger-cli/6B1AE214-6CD2-495A-BFA7-B11F9FB33675%40gmail.com.