[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: |
Sun, 04 Feb 2007 12:21:15 -0500 |
User-agent: |
Thunderbird 1.5.0.9 (X11/20070103) |
David Hansen wrote:
> 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
Might as well make it:
(add-hook 'eshell-mode-hook
#'(lambda ()
(define-key eshell-mode-map (kbd "<home>") #'eshell-bol)
(define-key eshell-mode-map (kbd "C-a") #'eshell-bol)))
I'm wondering why this isn't default behavior.
Matt
signature.asc
Description: OpenPGP digital signature