all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* activate new org-tree-to-indirect-buffer to rename to name of heading
@ 2015-09-03  9:30 Rainer M Krug
  0 siblings, 0 replies; only message in thread
From: Rainer M Krug @ 2015-09-03  9:30 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1175 bytes --]

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:      Rainer@krugs.de

Skype:      RMkrug

PGP: 0x0F52F982

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 480 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-09-03  9:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-03  9:30 activate new org-tree-to-indirect-buffer to rename to name of heading Rainer M Krug

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.