From: Carsten Dominik <carsten.dominik@gmail.com>
To: David O'Toole <dto@gnu.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: [Orgmode] Org-mode usage and concept mapping.
Date: Tue, 12 Sep 2006 11:35:28 +0200 [thread overview]
Message-ID: <838070669b7b4c059a372a9ceb0f6767@science.uva.nl> (raw)
In-Reply-To: <m3ejujc213.fsf@gnu.org>
On Sep 10, 2006, at 14:57, David O'Toole wrote:
> I also use Carsten's outline-magic.el (which feels like org-mode with
> its visibility cycling) to organize and get overviews of source code
> in my emacs lisp projects.
>
> Side question: Carsten, did you get a chance to integrate my bugfix
> into the version of outline-magic available on your site? I still use
> a locally fixed version, but i think others might like to have their
> source code cycle like orgmode buffers do.
>
I have not yet updated outline-magic, not found the time yet.
However, if you are just interested in using visibility cycling for
outline-mode and outline-minor mode, you can bind the corresponding
org-mode functions also in these modes. For outline-minor-mode, here
is what I have in .emacs to do this:
(add-hook 'outline-minor-mode-hook
(lambda ()
(define-key outline-minor-mode-map [(control tab)] 'org-cycle)
(define-key outline-minor-mode-map [(shift tab)]
'org-global-cycle)))
(add-hook 'emacs-lisp-mode-hook 'outline-minor-mode)
The problem is that in most major modes, TAB is used for indentation,
so we cannot use it for cycling. The implementation above makes S-TAB
do global cycling just line in Org-mode, but the local cycling is done
with C-TAB.
To get cycling in outline-mode itself, we can in fact use TAB, so for
outline-mode I use
(add-hook 'outline-mode-hook
(lambda ()
(define-key outline-mode-map [(tab)] 'org-cycle)
(define-key outline-mode-map [(shift tab)] 'org-global-cycle)))
- Carsten
--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477
next prev parent reply other threads:[~2006-09-12 9:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-10 7:15 [Orgmode] Org-mode usage and concept mapping Alex Bochannek
2006-09-10 12:57 ` David O'Toole
2006-09-11 3:51 ` Alex Bochannek
2006-09-12 9:21 ` Carsten Dominik
[not found] ` <b71b18520609120727r215f2979me75a33e8f7e4d740@mail.gmail.com>
2006-09-13 15:39 ` Carsten Dominik
2006-09-16 0:51 ` Alex Bochannek
2006-09-12 9:35 ` Carsten Dominik [this message]
2006-09-10 19:01 ` [Orgmode] " Christopher Kuettner
2006-09-11 11:54 ` chris
2006-09-16 0:48 ` Alex Bochannek
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=838070669b7b4c059a372a9ceb0f6767@science.uva.nl \
--to=carsten.dominik@gmail.com \
--cc=dto@gnu.org \
--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).