[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a simple convenience function

From: Lennart Borgman
Subject: Re: a simple convenience function
Date: Mon, 15 Nov 2004 08:28:12 +0100

Yes, my intention was to not change the default behaviour for default usage
so to say, but I realize now that a little bit more is needed to achieve

- Lennart

----- Original Message ----- 
From: "Paul Pogonyshev" <address@hidden>
To: "Lennart Borgman" <address@hidden>
Cc: "Miles Bader" <address@hidden>; <address@hidden>
Sent: Monday, November 15, 2004 2:49 AM
Subject: Re: a simple convenience function

> Though I found the behaviour suggested by Paul much more mnemonic when
> bound to the Home key. It is also found in some other editors.
> - Lennart
> PS: Maybe I should write it as
> (defun home-or-back-to-indentation()
>   (interactive)
>   (if (bolp) (back-to-indentation) (beginning-of-line)))
> (define-key global-map [home] 'home-or-back-to-indentation)

Perhaps, but this way you get it the way round: it will first jump
to the beginning of line and then to the beginning of the text.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]