From: Yagnesh <yagnesh@live.com>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: code folding with <backtab> ?
Date: Mon, 9 Apr 2012 20:44:39 +0900 [thread overview]
Message-ID: <BLU0-SMTP255B0A618FC2BAC7AA3FDF7CC370@phx.gbl> (raw)
In-Reply-To: <4F82BFE3.9080408@easy-emacs.de> ("Andreas Röhler"'s message of "Mon, 09 Apr 2012 12:54:27 +0200")
Hi Andreas,
Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
> Am 08.04.2012 11:37, schrieb Yagnesh Raghava Yakkala:
>>
>> Hello Bastien,
>>
>> Bastien<bzg@altern.org> writes:
>>
>>> Yagnesh Raghava Yakkala<yagnesh@live.com> writes:
>>>
>>>> To begin with elisp, can anybody tell me how to make backtab to show the
>>>> outline of the buffer at least for two levels. I mean first press would show
>>>> me buffer folded upto top level comments, defuns, defcustoms and defvars
>>>> and the second press would show me entire buffer.
>>>
>>> Add a hook to use `orgstruct-mode' in emacs-lisp buffers:
>>>
>>> (add-hook 'emacs-lisp-mode-hook 'orgstruct-mode)
>>>
>>> Define a new `org-cycle-global' command:
>>>
>>> (defun org-cycle-global () (interactive) (org-cycle t))
>>>
>>> Set this keybinding:
>>>
>>> (global-set-key (kbd "<backtab>") 'org-cycle-global)
>>
>> Wow this is great, working nice too (except when point is at the end of
>> buffer). I didn't think, Org itself can be used here. I wonder why its not
>> working with other programming modes, say perl and python.
>>
>>
>> Thanks.
>>
>
> https://bugs.launchpad.net/python-mode/+bug/977121
>
> a feature request for now
>
>
Thank you Andreas.
--
YYR
next prev parent reply other threads:[~2012-04-09 11:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-07 8:07 code folding with <backtab> ? Yagnesh Raghava Yakkala
2012-04-07 9:18 ` Bastien
2012-04-08 9:37 ` Yagnesh Raghava Yakkala
2012-04-09 10:07 ` Bastien
2012-04-09 10:54 ` Andreas Röhler
2012-04-09 11:44 ` Yagnesh [this message]
2012-04-09 14:50 ` Bastien
2012-04-09 18:30 ` Andreas Röhler
[not found] ` <mailman.675.1333790271.20052.help-gnu-emacs@gnu.org>
2012-04-08 14:52 ` Uday Reddy
2012-04-09 10:08 ` Bastien
[not found] <mailman.674.1333786057.20052.help-gnu-emacs@gnu.org>
2012-04-09 1:00 ` Michael Heerdegen
2012-04-09 12:05 ` yagnesh raghava
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BLU0-SMTP255B0A618FC2BAC7AA3FDF7CC370@phx.gbl \
--to=yagnesh@live.com \
--cc=andreas.roehler@easy-emacs.de \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.