all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* insert/overwrite-mode toggle
@ 2002-10-24 21:24 CarlC
  2002-10-24 22:19 ` Richard V. Molen
  2002-10-25 12:19 ` Kevin Dziulko
  0 siblings, 2 replies; 5+ messages in thread
From: CarlC @ 2002-10-24 21:24 UTC (permalink / raw)


I am wanting to have my insert key toggle between insert and overwrite. I
imagine someone out there is already doing this? Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: insert/overwrite-mode toggle
  2002-10-24 21:24 CarlC
@ 2002-10-24 22:19 ` Richard V. Molen
  2002-10-25  0:23   ` Barry Margolin
  2002-10-25 12:19 ` Kevin Dziulko
  1 sibling, 1 reply; 5+ messages in thread
From: Richard V. Molen @ 2002-10-24 22:19 UTC (permalink / raw)


"CarlC" <carlc@snowbd.com> writes:

> I am wanting to have my insert key toggle between insert and overwrite. I
> imagine someone out there is already doing this? Thanks.

In Emacs 21.2, C-h k <insert> (<-- the insert key) shows...

<insert> runs the command overwrite-mode
   which is an interactive compiled Lisp function in `simple'.
(overwrite-mode ARG)

Toggle overwrite mode.
With arg, turn overwrite mode on iff arg is positive.
In overwrite mode, printing characters typed in replace existing text
on a one-for-one basis, rather than pushing it to the right.  At the
end of a line, such characters extend the line.  Before a tab,
such characters insert until the tab is filled in.
C-q still inserts characters in overwrite mode; this
is supposed to make it easier to insert characters when necessary.

...If you're using a *nix console or xterm your termcap may not be
identifying the key, but that's beyond my experience -- google search
may help.

-- 
Richard V. Molen

Warning!!
Signature under construction, safety glasses required.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: insert/overwrite-mode toggle
  2002-10-24 22:19 ` Richard V. Molen
@ 2002-10-25  0:23   ` Barry Margolin
  0 siblings, 0 replies; 5+ messages in thread
From: Barry Margolin @ 2002-10-25  0:23 UTC (permalink / raw)


In article <u1y6fwkd4.fsf@bambecksystems.com>,
Richard V. Molen <rvmolen@bambecksystems.com> wrote:
>"CarlC" <carlc@snowbd.com> writes:
>
>> I am wanting to have my insert key toggle between insert and overwrite. I
>> imagine someone out there is already doing this? Thanks.
>
>In Emacs 21.2, C-h k <insert> (<-- the insert key) shows...

><insert> runs the command overwrite-mode

And in 20.x as well.

-- 
Barry Margolin, barmar@genuity.net
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: insert/overwrite-mode toggle
  2002-10-24 21:24 CarlC
  2002-10-24 22:19 ` Richard V. Molen
@ 2002-10-25 12:19 ` Kevin Dziulko
  1 sibling, 0 replies; 5+ messages in thread
From: Kevin Dziulko @ 2002-10-25 12:19 UTC (permalink / raw)


Start emacs and go to the *scratch* buffer. Press Control-q. Now hit your
insert key. You will see some weird characters, something like ^[[1~.
Remember those characters.  Then in you .emacs file, put in a line like:
(global-set-key "\e[1~" 'overwrite-mode)
where the [1~ are the characters you remembered, minus the first ^[.

Hope this helps.

Kevin



On Thu, 24 Oct 2002, CarlC wrote:

> I am wanting to have my insert key toggle between insert and overwrite. I
> imagine someone out there is already doing this? Thanks.
>
>
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: insert/overwrite-mode toggle
       [not found] <mailman.1035548430.6132.help-gnu-emacs@gnu.org>
@ 2002-10-25 13:06 ` CarlC
  0 siblings, 0 replies; 5+ messages in thread
From: CarlC @ 2002-10-25 13:06 UTC (permalink / raw)



"Kevin Dziulko" <dziulko@klaatu.canisius.edu> wrote in message
news:mailman.1035548430.6132.help-gnu-emacs@gnu.org...
> Start emacs and go to the *scratch* buffer. Press Control-q. Now hit your
> insert key. You will see some weird characters, something like ^[[1~.
> Remember those characters.  Then in you .emacs file, put in a line like:
> (global-set-key "\e[1~" 'overwrite-mode)
> where the [1~ are the characters you remembered, minus the first ^[.
>
> Hope this helps.
>
> Kevin
>

Thank you. This solved my problem.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-10-25 13:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1035548430.6132.help-gnu-emacs@gnu.org>
2002-10-25 13:06 ` insert/overwrite-mode toggle CarlC
2002-10-24 21:24 CarlC
2002-10-24 22:19 ` Richard V. Molen
2002-10-25  0:23   ` Barry Margolin
2002-10-25 12:19 ` Kevin Dziulko

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.