zsh-workers
 help / color / mirror / code / Atom feed
* forward-word?
@ 1997-02-19 11:46 Jari Kokko
  1997-02-19 18:14 ` forward-word? blaise
  0 siblings, 1 reply; 3+ messages in thread
From: Jari Kokko @ 1997-02-19 11:46 UTC (permalink / raw)
  To: zsh-workers

Is the forward-word behaviour intentionally different from GNU Emacs?

If I type Ctrl-a, Meta-f the cursor ends up 
with zsh:
            aaaa    bbbb    cccc
                    ^
with emacs:
            aaaa    bbbb    cccc
                ^

(zsh 3.0.2, emacs 19.34)

I'd like to change this, and tried 'bindkey | grep forw' but found
nothing interesting.

Jari Kokko


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

* forward-word?
  1997-02-19 11:46 forward-word? Jari Kokko
@ 1997-02-19 18:14 ` blaise
  1997-02-20 11:02   ` forward-word? Jari Kokko
  0 siblings, 1 reply; 3+ messages in thread
From: blaise @ 1997-02-19 18:14 UTC (permalink / raw)
  To: zsh-workers

Jari Kokko writes:
 > Is the forward-word behaviour intentionally different from GNU Emacs?
 > 
 > If I type Ctrl-a, Meta-f the cursor ends up 
 > with zsh:
 >             aaaa    bbbb    cccc
 >                     ^
 > with emacs:
 >             aaaa    bbbb    cccc
 >                 ^
 > 
 > (zsh 3.0.2, emacs 19.34)
 > 
 > I'd like to change this, and tried 'bindkey | grep forw' but found
 > nothing interesting.

I have the following in my .zshrc, which accomplishes what you want.
However it still leaves me wondering why this is not the default
behavior.  (Ksh's emacs mode is bound like GNU emacs's.)

bindkey -me
bindkey '\Mf' emacs-forward-word
bindkey '\MF' emacs-forward-word
bindkey '\M^h' backward-kill-word

-- 
Blaise Tarr
btarr@attmail.com


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

* Re: forward-word?
  1997-02-19 18:14 ` forward-word? blaise
@ 1997-02-20 11:02   ` Jari Kokko
  0 siblings, 0 replies; 3+ messages in thread
From: Jari Kokko @ 1997-02-20 11:02 UTC (permalink / raw)
  To: zsh-workers

In article <9702191814.AA22811@jbond.zenith.att.com>,
 <blaise@zenith.att.com> wrote:
> bindkey -me
> bindkey '\Mf' emacs-forward-word
> bindkey '\MF' emacs-forward-word
> bindkey '\M^h' backward-kill-word

Thank you kindly,

Exactly what I was looking for, and more (the C-M-h was another thing
I missed).

I was careless and didn't check the zshzle(1) man page, sorry for the
noise.

Shouldn't emacs mode be as close to emacs as possible by default,
though?

Jari Kokko


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

end of thread, other threads:[~1997-02-20 11:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-02-19 11:46 forward-word? Jari Kokko
1997-02-19 18:14 ` forward-word? blaise
1997-02-20 11:02   ` forward-word? Jari Kokko

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).