[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eshell regexp for prompt
From: |
Matthew Flaschen |
Subject: |
Re: eshell regexp for prompt |
Date: |
Mon, 05 Feb 2007 04:00:27 -0500 |
User-agent: |
Thunderbird 1.5.0.9 (X11/20070103) |
Hadron wrote:
> David Hansen <david.hansen@gmx.net> writes:
>
>> On Sun, 04 Feb 2007 06:58:58 +0100 Hadron wrote:
>>
>>> I basically want "home" to only move cursor to the end of the prompt so
>>> I have to set eshell-prompt-regexp I think?
>> (add-hook 'eshell-mode-hook
>> #'(lambda ()
>> (define-key eshell-mode-map (kbd "<home>") #'eshell-bol)))
>>
>> David
>>
>>
>>
>
> Thanks David. So creating a different reg-exp wasnt the way. I am
> surprised this isnt the default to be honest, But as Ive come to
> realise in emacs, there is probably a very good reason :)
That's certainly possible, but I'm hard-pressed to think of a reason
that applies to eshell but not shell-mode.
Matt
signature.asc
Description: OpenPGP digital signature