emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] reveal only current subtree


From: sergio
Subject: Re: [O] reveal only current subtree
Date: Sun, 18 Dec 2011 13:32:44 +0400
User-agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111120 Icedove/8.0

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

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