From: Rainer Stengele <rainer.stengele@diplan.de>
To: emacs-orgmode@gnu.org
Subject: shortcut suggestion C-c C-& instead of C-& with no context.
Date: Fri, 14 Dec 2007 10:08:53 +0100 [thread overview]
Message-ID: <fjth6u$gga$1@ger.gmane.org> (raw)
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
reply other threads:[~2007-12-14 9:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='fjth6u$gga$1@ger.gmane.org' \
--to=rainer.stengele@diplan.de \
--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).