all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: drain <aeuster@gmail.com>
To: Help-gnu-emacs@gnu.org
Subject: Re: Is any extension in Emacs can shrink and expand a block of code
Date: Fri, 10 Aug 2012 09:48:23 -0700 (PDT)	[thread overview]
Message-ID: <1344617303109-261142.post@n5.nabble.com> (raw)
In-Reply-To: <CAKGbVbsr4vCJvmmvJUXX-Sx-adqkeAF5RuPd=LdJMxUK9YKRzw@mail.gmail.com>

Add this to your .emacs:

;; collapsible code

(global-set-key "\C-x\M-h" 'hs-minor-mode)

    (global-set-key "\C-c\C-h" 'hs-toggle-hiding)
    (global-set-key "\C-c\M-h" 'hs-hide-all)
    (global-set-key "\C-c\M-s" 'hs-show-all)

I suggest adjusting the particular bindings to your taste and style.





--
View this message in context: http://emacs.1067599.n5.nabble.com/Is-any-extension-in-Emacs-can-shrink-and-expand-a-block-of-code-tp261127p261142.html
Sent from the Emacs - Help mailing list archive at Nabble.com.



  reply	other threads:[~2012-08-10 16:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-10 14:55 Is any extension in Emacs can shrink and expand a block of code Qiang Yu
2012-08-10 16:48 ` drain [this message]
2012-08-10 17:04 ` Andreas Röhler

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=1344617303109-261142.post@n5.nabble.com \
    --to=aeuster@gmail.com \
    --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.