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

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

Re: calc embedded mode and evil mode


From: Óscar Fuentes
Subject: Re: calc embedded mode and evil mode
Date: Fri, 08 Nov 2019 19:06:48 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> I use evil mode extensively.  However, I also use embedded calc
> mode.  The latter cannot be in evil mode as it has its own
> bindings.  However, switching to embedded mode (C-x * e) leaves the
> editing mode as it is, i.e. in evil mode.  I have tried the following,
> to no effect:
>
>    (add-hook 'calc-embedded-mode-hook #'(evil-emacs-state))
>    
> although typing C-z (bound to evil-emacs-state) after C-x *e does switch
> to emacs state.
>
> Any suggestions most welcome!  Thank you.

(add-hook 'calc-embedded-new-formula-hook #'evil-emacs-state)

does the trick of changing to evil-emacs-state here. I don't know about
a method for returning to some Evil state after exiting calc-embedded.

But if I invoke calc-embedded while Evil is in insert-state, I can use
calc-embedded just fine, at least for the simple tests I've tried.




reply via email to

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