emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-speed-commands and `org-beginning-of-line-tip'
@ 2013-08-01  7:18 Oleh
  2013-08-02  6:57 ` Rainer Stengele
  0 siblings, 1 reply; 2+ messages in thread
From: Oleh @ 2013-08-01  7:18 UTC (permalink / raw)
  To: org mode

Hi all,

I've come to rely on org-speed-commands quite a lot,
and I wanted to share this tip with other people, who use them:

(define-key org-mode-map (kbd "C-a")
  (lambda()(interactive)
         (if (looking-at "^[^*]")
             (re-search-backward "^*")
           (org-beginning-of-line))))

Basically, an additional C-a when already at the beginning of line takes you to
the previous heading, where speed commands are possible.

Since the normal C-a would do nothing in this case, it's a straight upgrade.

regards,
Oleh

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org-speed-commands and `org-beginning-of-line-tip'
  2013-08-01  7:18 org-speed-commands and `org-beginning-of-line-tip' Oleh
@ 2013-08-02  6:57 ` Rainer Stengele
  0 siblings, 0 replies; 2+ messages in thread
From: Rainer Stengele @ 2013-08-02  6:57 UTC (permalink / raw)
  To: emacs-orgmode

Am 8/1/2013 9:18 AM, schrieb Oleh:
> Hi all,
> 
> I've come to rely on org-speed-commands quite a lot,
> and I wanted to share this tip with other people, who use them:
> 
> (define-key org-mode-map (kbd "C-a")
>   (lambda()(interactive)
>          (if (looking-at "^[^*]")
>              (re-search-backward "^*")
>            (org-beginning-of-line))))
> 
> Basically, an additional C-a when already at the beginning of line takes you to
> the previous heading, where speed commands are possible.
> 
> Since the normal C-a would do nothing in this case, it's a straight upgrade.
> 
> regards,
> Oleh
> 
> 
Hi, nice idea, thanks.
Rainer

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-02  6:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-01  7:18 org-speed-commands and `org-beginning-of-line-tip' Oleh
2013-08-02  6:57 ` Rainer Stengele

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).