From: pinard@iro.umontreal.ca (François Pinard)
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: TAB from within a text
Date: Fri, 03 Feb 2012 10:30:12 -0500 [thread overview]
Message-ID: <87bopgylx7.fsf@iro.umontreal.ca> (raw)
In-Reply-To: <18D94817-6E5C-4B47-81EF-8D8A6CC8F0E0@polytechnique.org> (Alan Schmitt's message of "Fri, 03 Feb 2012 15:50:02 +0100")
"Alan Schmitt" <alan.schmitt@polytechnique.org> writes:
> On 3 Feb 2012, at 15:36, François Pinard wrote:
>> Is it unreasonable for me to hope that, instead of `C-c C-j <up>
>> 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-block-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çois
next prev parent reply other threads:[~2012-02-03 15:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-03 14:36 TAB from within a text François Pinard
2012-02-03 14:50 ` Alan Schmitt
2012-02-03 15:30 ` François Pinard [this message]
2012-02-03 15:25 ` Nick Dokos
2012-02-03 15:36 ` François Pinard
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=87bopgylx7.fsf@iro.umontreal.ca \
--to=pinard@iro.umontreal.ca \
--cc=alan.schmitt@polytechnique.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).