From: Bastien <bzg@altern.org>
To: Yagnesh Raghava Yakkala <yagnesh@live.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: code folding with <backtab> ?
Date: Sat, 07 Apr 2012 11:18:58 +0200 [thread overview]
Message-ID: <874nsv99x9.fsf@altern.org> (raw)
In-Reply-To: <87ty0wdkyc.fsf@live.com> (Yagnesh Raghava Yakkala's message of "Sat, 07 Apr 2012 17:07:07 +0900")
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)
HTH,
--
Bastien
next prev parent reply other threads:[~2012-04-07 9:18 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 [this message]
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
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874nsv99x9.fsf@altern.org \
--to=bzg@altern.org \
--cc=help-gnu-emacs@gnu.org \
--cc=yagnesh@live.com \
/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.
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).