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)))


-- 
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/87impix1pd.fsf%40aquinas.i-did-not-set--mail-host-address--so-tickle-me.

Reply via email to