Emacs musings (was: Re: put cursor on found text in less or vi?)
Paul Smith
paul at mad-scientist.net
Fri Sep 27 14:40:41 UTC 2024
On Thu, 2024-09-26 at 20:51 -0400, Little Girl wrote:
> > The Ins key toggles overwrite mode.
>
> There's my wall and that would send me scampering. Can it also be
> overridden in the configuration file so that pressing the Ins key
> pastes the cut or copied text at the cursor instead?
>
> To be specific, I mean that if I have apple|coconut (with the pipe
> representing the position of the cursor rather than an actual
> character), if banana is on the clipboard and I press the Ins key, I
> will get applebanana|coconut (with the pipe representing the position
> of the cursor rather than an actual character).
Certainly. Every key can be rebound. Even the most basic keys like
ENTER etc. are bindable (for example in Magit pressing ENTER when your
cursor is on a commit will show that commit's details in another
buffer--similar for other "non-editing" modes).
You would use something like:
(global-set-key [insert] 'yank)
However I'm confused because I thought that what you describe above is
what you wanted shift-Insert to do (and what it actually does, as my
testing showed). Am I confused, or do you want Insert and shift-Insert
to do the same thing?
More information about the ubuntu-users
mailing list