emacs-orgmode
[Top][All Lists]
Advanced

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

[O] activate new org-tree-to-indirect-buffer to rename to name of headin


From: Rainer M Krug
Subject: [O] activate new org-tree-to-indirect-buffer to rename to name of heading
Date: Thu, 03 Sep 2015 11:30:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)

Hi

I am following an older discussion of mine (Subject:
org-tree-to-indirect-buffer - naming and prefix in define keyboard key).

I have

#+begin_src emacs-lisp
(define-key org-mode-map "\C-ci" (lambda ()
                                   (interactive)
                                   (org-tree-to-indirect-buffer '(4))))
#+end_src

to open the org-tree in a new indirect buffer. This works nice, but I
want to rename the buffer.

I know from Alan Schmitt that I can do this by using

#+begin_src emacs-lisp
 (rename-buffer (org-get-heading) t)
#+end_src

but I have to activate the new indirect buffer first.

How can I activate the new indirect buffer, so that I can rename it to
the name of the header?

Thanks,

Rainer
-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      address@hidden

Skype:      RMkrug

PGP: 0x0F52F982

Attachment: signature.asc
Description: PGP signature


reply via email to

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