[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eshell regexp for prompt
From: |
Hadron |
Subject: |
Re: eshell regexp for prompt |
Date: |
Mon, 05 Feb 2007 08:58:23 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
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 :)