emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: Using shift and arrow keys to select lines in Aquamacs (in


From: PT
Subject: [Orgmode] Re: Using shift and arrow keys to select lines in Aquamacs (in org-mode)
Date: Wed, 11 Nov 2009 05:14:33 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Saptarshi Guha <saptarshi.guha <at> gmail.com> writes:

> 
> Hello,
> I know shift and arrow keys are used by org-mode. But is there a way
> to remap them to selecting the line(as in Aquamacs text mode)
>  (e.g shift+down highlights the current line, shift+up highlights the
> previous line etc).
> 

I rebound the keys in my org-mode hook:



(add-hook 'org-mode-hook 'my-org-mode-stuff)

(defun my-org-mode-stuff ()
   ...
  (local-set-key (kbd "C-S-<right>") 'forward-word-mark)
  (local-set-key (kbd "C-S-<left>") 'backward-word-mark)
  (local-set-key (kbd "S-<right>") 'forward-char-mark)
  (local-set-key (kbd "S-<left>") 'backward-char-mark)
  (local-set-key (kbd "S-<up>") 'previous-line-mark)
  (local-set-key (kbd "S-<down>") 'next-line-mark)
  ...





reply via email to

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