Hi Richard,
Ah i see ... Yes it seems to be a debatable topic. Thanks for pointing the
link .
I personally liked the tab completion. Sorry, but my understanding of emacs
is a bit limited . Where do i add these codes ? In the init.el?
(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)))
...
On Tuesday, September 24, 2019 at 2:16:52 AM UTC+7, Richard Lawrence wrote:
>
> Hi Oscar,
>
> Oscar <[email protected] <javascript:>> 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
>
--
---
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/0b6164c4-8d88-4581-9f35-62ae18d12f37%40googlegroups.com.