emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Some desktop managers co-opt C-M-right and C-M-left
@ 2014-04-20 11:45 Susan Cragin
  2014-04-20 11:56 ` Thorsten Jolitz
  0 siblings, 1 reply; 4+ messages in thread
From: Susan Cragin @ 2014-04-20 11:45 UTC (permalink / raw)
  To: Emacs-orgmode list

Aggghhh.
I changed to the Enlightenment desktop manager, changed my underlying distro to Lubuntu (LXDE)

Both desktop managers co-opt the C-M-right and -left keys to change desktops. (They also co-opt C-S-right.) Ditto -up and -down.

I have tried the following: 

(global-set-key (kbd "C-S-right") 'org-demote-subtree)
(global-set-key (kbd "C-S-left") 'org-promote-subtree)

error: C-S- must prefix a single character, not right

Have also tried C-M-right, with similar results. 

Does anyone have an idea? I have two problems. On-line documentation has told me that I can spell out the word "right" to mean "right-arrow," but clearly that is wrong, and there is one letter that does this. ???

My second problem is this: will a command set in .emacs over-ride a command set by my desktop? If it does not, should I try the following, and use the Windows / super key?

(global-set-key (kbd "C-s-right") 'org-demote-subtree)

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: Some desktop managers co-opt C-M-right and C-M-left
@ 2014-04-20 11:58 Susan Cragin
  0 siblings, 0 replies; 4+ messages in thread
From: Susan Cragin @ 2014-04-20 11:58 UTC (permalink / raw)
  To: Emacs-orgmode list

I answered my own question. 
.emacs does not take precedence over my desktop manager. 

Solution: use Super key, as follows.
(global-set-key (kbd "C-s-<right>") 'org-demote-subtree)
(global-set-key (kbd "C-s-<left>") 'org-promote-subtree)
(global-set-key (kbd "C-s-<up>") 'org-move-subtree-up)
(global-set-key (kbd "C-s-<down>") 'org-move-subtree-down)

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: Some desktop managers co-opt C-M-right and C-M-left
@ 2014-04-20 12:03 Susan Cragin
  0 siblings, 0 replies; 4+ messages in thread
From: Susan Cragin @ 2014-04-20 12:03 UTC (permalink / raw)
  To: Emacs-orgmode list


Thanks, Thorsten, for the <> hint. 

(global-set-key (kbd "C-s-<right>") 'org-demote-subtree)
(global-set-key (kbd "C-s-<left>") 'org-promote-subtree)
(global-set-key (kbd "C-s-<up>") 'org-move-subtree-up)
(global-set-key (kbd "C-s-<down>") 'org-move-subtree-down)


-----Original Message-----
>From: Thorsten Jolitz <tjolitz@gmail.com>
>Sent: Apr 20, 2014 7:56 AM
>To: emacs-orgmode@gnu.org
>Subject: Re: [O] Some desktop managers co-opt C-M-right and C-M-left
>
>Susan Cragin <susancragin@earthlink.net> writes:
>
>> Aggghhh.
>> I changed to the Enlightenment desktop manager, changed my underlying
>> distro to Lubuntu (LXDE)
>>
>> Both desktop managers co-opt the C-M-right and -left keys to change
>> desktops. (They also co-opt C-S-right.) Ditto -up and -down.
>>
>> I have tried the following: 
>>
>> (global-set-key (kbd "C-S-right") 'org-demote-subtree)
>> (global-set-key (kbd "C-S-left") 'org-promote-subtree)
>>
>> error: C-S- must prefix a single character, not right
>>
>> Have also tried C-M-right, with similar results. 
>>
>> Does anyone have an idea? I have two problems. On-line documentation
>> has told me that I can spell out the word "right" to mean
>> "right-arrow," but clearly that is wrong, and there is one letter that
>> does this. ???
>
>maybe "C-S-<right>"?
>
>> My second problem is this: will a command set in .emacs over-ride a
>> command set by my desktop? 
>
>I don't think so, the command will probably never reach Emacs because
>its used by the WM
>
>> If it does not, should I try the following, and use the Windows /
>> super key?
>
>You could also try to change the WM (or OS) keybindings and free those
>key combinations you want for Emacs. Its an ongoing struggle, I had and
>have these problems/conflict too, its even worse on the console where
>some keyboard keys are just dead by default. 
>
>-- 
>cheers,
>Thorsten
>
>

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

end of thread, other threads:[~2014-04-20 12:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-20 11:45 Some desktop managers co-opt C-M-right and C-M-left Susan Cragin
2014-04-20 11:56 ` Thorsten Jolitz
2014-04-20 11:58 Susan Cragin
2014-04-20 12:03 Susan Cragin

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).