On 12/18/2011 09:44 AM, Takaaki ISHIKAWA wrote:

> (define-key org-mode-map (kbd "C-c C-r")
>   '(lambda () (interactive) (org-show-siblings)))

It doesn't work for me: Symbol's value as variable is void: org-mode-map

But I've remade previous mappig:

(add-hook 'org-mode-hook (lambda ()
        (local-set-key "\C-c\C-r" 'my-reveal)))
(defun my-reveal (&optional all-siblings)
  (interactive "P")
  (if all-siblings
    (org-reveal t)
    (org-show-siblings)))

For C-u C-c C-r it does the same as default org-mode --- shows all
hidden siblings, and for C-c C-r --- all siblings of current level.

I hope this will be interested not only for me.

-- 
sergio.

Reply via email to