From: Sebastian Rose <sebastian_rose@gmx.de>
To: "Daniel E. Doherty" <ded-law@ddoherty.net>
Cc: "emacs-orgmode@gnu org" <emacs-orgmode@gnu.org>
Subject: Re: Shift-Arrow Pass Through for windmove?
Date: Fri, 23 Apr 2010 18:01:41 +0200 [thread overview]
Message-ID: <87sk6mqhsq.fsf@gmx.de> (raw)
In-Reply-To: <87633jb57w.wl%ded-law@ddoherty.net> (Daniel E. Doherty's message of "Thu, 22 Apr 2010 15:30:11 -0500")
Daniel E. Doherty <ded-law@ddoherty.net> writes:
> All,
>
> I make *very* frequent use of the shift-arrow keys to move from window
> to window inside emacs via windmove. It is probably the most frequent
> key combination I access.
>
> Anyway, is there a way to make org-mode friendlier to it by passing the
> key along whenever org-mode would otherwise throw an error. For
> example, when not on a heading, when in the agenda, and wherever else?
>
> I really like Carsten's use of the arrow keys for structure editing and
> don't want to lose that, just whenever org-mode can't make use of the
> keys.
Yes, that would be helpfull!
I guess you could do this:
(defun my/org-windmove-right-maybe (&optional arg)
(interactive "P")
(if (and (not (org-on-heading-p))
(not (org-at-item-p)))
(windmove-right arg)
(org-shiftright arg)))
;; and bind it in org-mode-hook:
(add-hook 'org-mode-hook
(lambda ()
(define-key org-mode-map [(shift right)]
'my/org-windmove-right-maybe)))
Sebastian
next prev parent reply other threads:[~2010-04-23 16:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-22 20:30 Shift-Arrow Pass Through for windmove? Daniel E. Doherty
2010-04-23 16:01 ` Sebastian Rose [this message]
2010-04-23 16:12 ` Sebastian Rose
2010-04-23 18:54 ` Carsten Dominik
2010-04-23 23:19 ` Sebastian Rose
2010-04-24 0:11 ` Carsten Dominik
2010-04-24 9:05 ` Sebastian Rose
2010-04-25 7:08 ` Carsten Dominik
2010-04-25 9:34 ` Sebastian Rose
2010-04-25 20:41 ` Daniel E. Doherty
2010-04-26 8:56 ` Sebastian Rose
2010-04-26 9:07 ` Carsten Dominik
2010-04-24 22:03 ` Daniel E. Doherty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sk6mqhsq.fsf@gmx.de \
--to=sebastian_rose@gmx.de \
--cc=ded-law@ddoherty.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).