[Top][All Lists]

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

Re: a simple convenience function

From: Paul Pogonyshev
Subject: Re: a simple convenience function
Date: Mon, 15 Nov 2004 03:49:57 +0200
User-agent: KMail/1.4.3

> 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]