From: "Óscar Fuentes" <ofv@wanadoo.es>
To: help-gnu-emacs@gnu.org
Subject: Re: calc embedded mode and evil mode
Date: Fri, 08 Nov 2019 19:06:48 +0100 [thread overview]
Message-ID: <87a796gs3r.fsf@telefonica.net> (raw)
In-Reply-To: 87k18axx2n.fsf@ucl.ac.uk
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.
next prev parent reply other threads:[~2019-11-08 18:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-08 14:27 calc embedded mode and evil mode Eric S Fraga
2019-11-08 18:06 ` Óscar Fuentes [this message]
2019-11-09 12:20 ` Eric S Fraga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a796gs3r.fsf@telefonica.net \
--to=ofv@wanadoo.es \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).