Hadron wrote: > David Hansen 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 "") #'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