help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: org-mode with a custom binding on S-Up and no shift-select


From: Kevin Rodgers
Subject: Re: org-mode with a custom binding on S-Up and no shift-select
Date: Thu, 21 May 2009 21:51:56 -0600
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]