From: Marco Baringer <e.baringer@studenti.to.it>
Subject: Re: How to get a read-only prompt in emacs shell
Date: 14 Jun 2002 17:57:22 +0200 [thread overview]
Message-ID: <m2hek5kg4d.fsf@studenti.to.it> (raw)
In-Reply-To: <m3y9dhsymd.fsf@latakia.dyndns.org>
ruhl@4dv.net (Robert Uhl <ruhl@4dv.net>) writes:
> e.baringer@studenti.to.it (Marco Baringer) writes:
> >
> > eshell.
>
> Not too bad. C-a doesn't make sense, though--it goes to the beginning
> of the line, not the beginning of the command-prompt (so the familiar
> C-a C-k doesn't work). Maybe I'll take a look at it when I get a
> round tuit.
my bad, i often forget where the emacs distribution ends and where my
.emacs begins. add this to your .emacs:
(add-hook 'eshell-mode-hook '(lambda ()
(local-set-key (kbd "C-a")
'(lambda ()
(interactive)
(beginning-of-line)
(search-forward-regexp eshell-prompt-regexp)))))
or for shell-mode (i haven't tested this as i don't use shell-mode)
(add-hook 'shell-mode-hook '(lambda ()
(local-set-key (kbd "C-a")
'(lambda ()
(interactive)
(beginning-of-line)
(search-forward-regexp shell-prompt-pattern)))))
> --
> Robert Uhl <ruhl@4dv.net>
> I won't insult your intelligence by suggesting that you really believe
> what you just said. --William F. Buckley, Jr.
>
--
-Marco
Ring the bells that still can ring.
Forget the perfect offering.
There's a crack in everything.
It's how the light gets in.
-Isonard Cohen
prev parent reply other threads:[~2002-06-14 15:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-14 1:06 How to get a read-only prompt in emacs shell vnsingh
2002-06-14 7:32 ` Marco Baringer
[not found] ` <m3y9dhsymd.fsf@latakia.dyndns.org>
2002-06-14 15:57 ` Marco Baringer [this message]
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=m2hek5kg4d.fsf@studenti.to.it \
--to=e.baringer@studenti.to.it \
/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).