Enable ivy region completion for ledger-mode

This is where I used it most often, and where I still want it to work
until a proper replacement is found.
This commit is contained in:
Daniel - 2024-03-11 17:02:41 +01:00
parent 4a14d2e37b
commit a4bae1d96e
Signed by: dbo
GPG Key ID: 784AA8DF0CCDF625
1 changed files with 6 additions and 1 deletions

View File

@ -2143,7 +2143,8 @@ Note that this workaround is incomplete, as explained in this comment."
(bind-key "C-z" #'helm-select-action helm-map)))
(use-package ivy
:commands (ivy-mode)
:commands (ivy-mode
ivy-completion-in-region)
:diminish ivy-mode
:init (setq ivy-use-virtual-buffers t
ivy-magic-tilde nil
@ -2799,6 +2800,10 @@ eventuelly be set to nil, however)."
(add-hook 'haskell-mode-hook
'interactive-haskell-mode)))
(use-package ledger-mode
:config (add-hook 'ledger-mode-hook #'(lambda ()
(setq-local completion-in-region-function #'ivy-completion-in-region))))
(use-package markdown-mode
:ensure t
:commands (markdown-mode)