emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: sergio <mailbox@sergio.spb.ru>
To: emacs-orgmode@gnu.org
Subject: Re: reveal only current subtree
Date: Sun, 18 Dec 2011 13:32:44 +0400	[thread overview]
Message-ID: <4EEDB33C.8000603@sergio.spb.ru> (raw)
In-Reply-To: <B351030F-690D-4C7D-9A23-092ED80CDFCB@ieee.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.

  reply	other threads:[~2011-12-18  9:32 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-17 14:20 reveal only current subtree sergio
2011-12-17 15:24 ` Takaaki ISHIKAWA
2011-12-17 15:52   ` sergio
2011-12-17 16:09     ` Takaaki ISHIKAWA
2011-12-17 16:04 ` Carsten Dominik
2011-12-17 17:57   ` sergio
2011-12-17 17:59     ` Carsten Dominik
2011-12-17 18:33       ` sergio
2011-12-18  0:13         ` Takaaki ISHIKAWA
2011-12-18  0:54           ` sergio
2011-12-18  1:12             ` Takaaki ISHIKAWA
2011-12-18  1:28               ` sergio
2011-12-18  1:41                 ` Takaaki ISHIKAWA
2011-12-18  2:43               ` sergio
2011-12-18  5:44                 ` Takaaki ISHIKAWA
2011-12-18  9:32                   ` sergio [this message]
2011-12-18  9:47                     ` Takaaki ISHIKAWA
2011-12-18 10:25                       ` sergio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EEDB33C.8000603@sergio.spb.ru \
    --to=mailbox@sergio.spb.ru \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).