emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* shortcut suggestion C-c C-& instead of C-& with no context.
@ 2007-12-14  9:08 Rainer Stengele
  0 siblings, 0 replies; only message in thread
From: Rainer Stengele @ 2007-12-14  9:08 UTC (permalink / raw)
  To: emacs-orgmode

hi.

I oftentimes do set a mark anywhere in my large org file with C-%.
Working in the file somewhere else I want to go back and most of
the time I do not use simply C-& because it leaves me with no
context around the marked line - which is confusing.

Therefore what I do mostly is:

- S-TAB to switch to OVERVIEW
- C-& do jump to the mark
- C-c C-r to reveal the context

The result is a clear view onto my marked line with nice context.


So today I packed that together in something like this:

(defun org-jump-to-mark-reorganise-reveal-tree (&optional arg)
  (interactive)
  (org-mark-ring-goto)
  (org-shifttab)
  (org-reveal arg))
(global-set-key (kbd "C-c C-&") (lambda () (interactive) (org-jump-to-mark-reorganise-reveal-tree t)))

The code maybe is not optimal but it does the job.
Let me suggest this or a similar keybindung to do that job.


rainer

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

only message in thread, other threads:[~2007-12-14  9:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-14  9:08 shortcut suggestion C-c C-& instead of C-& with no context Rainer Stengele

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).