From mboxrd@z Thu Jan 1 00:00:00 1970 From: pinard@iro.umontreal.ca (=?utf-8?Q?Fran=C3=A7ois?= Pinard) Subject: Re: TAB from within a text Date: Fri, 03 Feb 2012 10:30:12 -0500 Message-ID: <87bopgylx7.fsf@iro.umontreal.ca> References: <87zkd0j863.fsf@iro.umontreal.ca> <18D94817-6E5C-4B47-81EF-8D8A6CC8F0E0@polytechnique.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtL5f-0003ao-D3 for emacs-orgmode@gnu.org; Fri, 03 Feb 2012 10:30:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtL5a-0001fi-1p for emacs-orgmode@gnu.org; Fri, 03 Feb 2012 10:30:19 -0500 Received: from 206-248-137-202.dsl.teksavvy.com ([206.248.137.202]:61472 helo=mercure.epsilon-ti.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtL5Z-0001fe-PY for emacs-orgmode@gnu.org; Fri, 03 Feb 2012 10:30:14 -0500 In-Reply-To: <18D94817-6E5C-4B47-81EF-8D8A6CC8F0E0@polytechnique.org> (Alan Schmitt's message of "Fri, 03 Feb 2012 15:50:02 +0100") 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: Alan Schmitt Cc: emacs-orgmode@gnu.org "Alan Schmitt" writes: > On 3 Feb 2012, at 15:36, Fran=C3=A7ois Pinard wrote: >> 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, Hello, Alan, and gang. Yes, it does, yet a bit unexpectedly. I see your usage of "/" to control the "my" name space. I also saw ":" and "::". Maybe I should change my habits, as I prepend "fp-", which is a bit dumb. I wonder if some common wisdom developed in that area, which I should follow. It also helps as telling that I'm abusing of global-set-key for my Org mode key bindings, while I should be more particular, as you do. :-) As for the real problem, my suggestion was really that TAB (and not `C-c t') be used for such a purpose, in Org mode proper, as it seems to me as the natural thing to do, and might be generally useful. However, I'm not fully sure the suggestion is necessarily a good one, as TAB also has special meaning here and there (I'm thinking of tables). Maybe TAB would be good enough nevertheless to be worth amending? Fran=C3=A7ois