From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alan Schmitt" Subject: Re: TAB from within a text Date: Fri, 03 Feb 2012 15:50:02 +0100 Message-ID: <18D94817-6E5C-4B47-81EF-8D8A6CC8F0E0@polytechnique.org> References: <87zkd0j863.fsf@iro.umontreal.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:46347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtKSp-0000dA-SO for emacs-orgmode@gnu.org; Fri, 03 Feb 2012 09:50:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtKSj-0001fl-P5 for emacs-orgmode@gnu.org; Fri, 03 Feb 2012 09:50:11 -0500 Received: from mail4-relais-sop.national.inria.fr ([192.134.164.105]:15560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtKSj-0001dj-Gr for emacs-orgmode@gnu.org; Fri, 03 Feb 2012 09:50:05 -0500 In-Reply-To: <87zkd0j863.fsf@iro.umontreal.ca> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?q?Fran=C3=A7ois?= Pinard Cc: emacs-orgmode@gnu.org On 3 Feb 2012, at 15:36, Fran=C3=A7ois Pinard wrote: > Hi, everybody. > > Writing a longish text for my coworkers this morning, I notice that I = > do > not know a quick way for collapsing the whole set of paragraphs I'm > currently writing, when their header happens to be many screenfuls = > above > point. I have to first return to that header and do TAB there. Even > this return was not evident to me at first. I wrongly thought that = > `C-c > C-u' would do it, but it jumps far too much and lands one level higher > than I expected. Then, /(org)Motion node/ taught me that I could use > `C-c C-j ' to this purpose; which is slightly convoluted to me, as = > I > always perceived `C-c C-j' as a kind of sophisticated "reveal". > > Is it unreasonable for me to hope that, instead of `C-c C-j TAB', = > a > mere TAB from within a long text would quickly do what I wanted? I have this in my .emacs: ;; From = http://stackoverflow.com/questions/8607656/emacs-org-mode-how-to-fold-blo= ck-without-going-to-block-header, = how to fold a block from inside (defun zin/org-cycle-current-headline () (interactive) (outline-previous-heading) (org-cycle)) (add-hook 'org-mode-hook (lambda () (define-key org-mode-map (kbd "C-c t") = 'zin/org-cycle-current-headline) )) Hope this helps, Alan=