help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I turn off ivy-mode in comint buffers?


From: Stefan Monnier
Subject: Re: Can I turn off ivy-mode in comint buffers?
Date: Sun, 01 Jul 2018 00:22:22 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>   (if (derived-mode-p 'comint-mode)
>       (ivy-mode -1)
>     (ivy-mode 1)))

AKA

   (ivy-mode (if (derived-mode-p 'comint-mode) -1 1))

> (add-hook 'post-command-hook 'disable-ivy-in-comint-only)

Hmm... really?
You want to (re)enable/disable ivy-mode after every command?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]