From mboxrd@z Thu Jan 1 00:00:00 1970 From: sergio Subject: Re: reveal only current subtree Date: Sun, 18 Dec 2011 13:32:44 +0400 Message-ID: <4EEDB33C.8000603@sergio.spb.ru> References: <4EECA52B.2070909@sergio.spb.ru> <976FFCBD-64DC-459A-8116-CE89B3742010@gmail.com> <4EECD802.8030007@sergio.spb.ru> <5D4CE247-6ABA-4779-BDA2-61128A4332C2@gmail.com> <4EECE079.4090304@sergio.spb.ru> <8C96E13F-342C-4BC3-8609-BFC0A8AECC21@ieee.org> <4EED39AF.3030602@sergio.spb.ru> <4EED5345.20202@sergio.spb.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcD6v-0005gx-Ds for emacs-orgmode@gnu.org; Sun, 18 Dec 2011 04:32:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RcD6u-0000Hx-Ih for emacs-orgmode@gnu.org; Sun, 18 Dec 2011 04:32:49 -0500 Received: from outerface.net ([195.70.199.109]:49762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RcD6u-0000Hn-Cm for emacs-orgmode@gnu.org; Sun, 18 Dec 2011 04:32:48 -0500 Received: from [188.134.66.115] (port=50973 helo=[192.168.1.35]) by outerface.net with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1RcD6b-0008Qt-Iq for emacs-orgmode@gnu.org; Sun, 18 Dec 2011 12:32:30 +0300 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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.