From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: org-mode with a custom binding on S-Up and no shift-select
Date: Thu, 21 May 2009 21:51:56 -0600 [thread overview]
Message-ID: <gv57gq$mr7$1@ger.gmane.org> (raw)
In-Reply-To: <87ljotcwrq.fsf@dpt-info.u-strasbg.fr>
Alain Ketterlin wrote:
> I've just started using org-mode and have a small problem with <S-up>
> and <S-down>. I don't use shift-select-mode. My .emacs has:
>
> (global-set-key (kbd "S-<down>") `(lambda ()
> (interactive)
> (scroll-up 1)))
>
> and similar for <S-up>.
That's what can happen when you define keys that are not reserved for
the user. Sticking to Control-C LETTER combinations is safest.
> (BTW, is interactive of any use here? I copied
> this somewhere, my elisp skills are almost non-existent.)
Yes, it is mandatory: only interactive functions can be bound to keys.
> Org-mode has special use for <S-up> and <S-down>. I would like to keep
> my own bindings, except on timestamps. I have customized
> org-support-shift-select, with the hope that org-mode would revert to
> default behavior, but it does not. Instead, it seems that it tries to
> emulate shift-select-mode.
>
> Is there any way to keep my own bindings?
Use local-set-key within an org-mode hook function.
> If not, is there any way to
> have org-mode's on timestamps, scroll-up by 1 otherwise?
That's a bit trickier.
--
Kevin Rodgers
Denver, Colorado, USA
next prev parent reply other threads:[~2009-05-22 3:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-19 8:38 org-mode with a custom binding on S-Up and no shift-select Alain Ketterlin
2009-05-22 3:51 ` Kevin Rodgers [this message]
2009-05-22 9:23 ` Vagn Johansen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='gv57gq$mr7$1@ger.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.