On 3/16/07, Leo <sdl.web@gmail.com> wrote:
On 2007-03-16, Leo said:

> On 2007-03-16, Scott Jaderholm said:
>
>> Hi,
>>
>> I was reading the EmacsWiki and saw a shortcut M-m which takes you
>> to the beginning of an indented line and I was wondering, is there
>> a shortcut in org-mode to go to the beginning of a heading (second
>> space after the last *)? If not, should M-m do this in org-mode?
>>
>> --Scott
>
> If this feature to implement at all, I would suggest C-c
> M-m. Overriding a global key binding can be inconvenient.

I just came up with a better solution.

When cursor is on a headline but not at the beginning of the heading,
C-a move it to the beginning.

  *** An example h
                 |
      |<---------+ first C-a
      |
  |<--+ second C-a

You can find a similar behavior in many other modes such as
message-mode.


Leo,

Good idea, one problem with this though is that for people using screen you have to type C-a a C-a a. Kind of a long keystroke. Then again, judging from all the shift keystrokes in org-mode, console functionality doesn't appear to be a very high priority.

I would think though that it would annoy people who are used to C-a going to the beginning of the line.

--Scott