From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [Orgmode] Org-mode usage and concept mapping. Date: Tue, 12 Sep 2006 11:35:28 +0200 Message-ID: <838070669b7b4c059a372a9ceb0f6767@science.uva.nl> References: Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GN4g5-0004eC-2R for emacs-orgmode@gnu.org; Tue, 12 Sep 2006 05:35:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GN4g4-0004dE-1D for emacs-orgmode@gnu.org; Tue, 12 Sep 2006 05:35:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GN4g3-0004ct-Pw for emacs-orgmode@gnu.org; Tue, 12 Sep 2006 05:35:35 -0400 Received: from [64.233.162.200] (helo=nz-out-0102.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GN4hW-00027l-Ik for emacs-orgmode@gnu.org; Tue, 12 Sep 2006 05:37:06 -0400 Received: by nz-out-0102.google.com with SMTP id z31so733414nzd for ; Tue, 12 Sep 2006 02:35:35 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: David O'Toole Cc: emacs-orgmode 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