From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Shiyuan Newsgroups: gmane.emacs.help Subject: hideshow minor-mode Date: Sun, 14 Oct 2012 20:40:26 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8fb1f8d2307d8204cc0f1f8c X-Trace: ger.gmane.org 1350265235 7073 80.91.229.3 (15 Oct 2012 01:40:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Oct 2012 01:40:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 15 03:40:42 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TNZfd-0003GF-KJ for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Oct 2012 03:40:41 +0200 Original-Received: from localhost ([::1]:59710 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNZfW-0006Bb-Pv for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Oct 2012 21:40:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNZfQ-0006BV-VP for help-gnu-emacs@gnu.org; Sun, 14 Oct 2012 21:40:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TNZfP-0003UY-VF for help-gnu-emacs@gnu.org; Sun, 14 Oct 2012 21:40:28 -0400 Original-Received: from mail-oa0-f41.google.com ([209.85.219.41]:53209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TNZfP-0003TF-Pe for help-gnu-emacs@gnu.org; Sun, 14 Oct 2012 21:40:27 -0400 Original-Received: by mail-oa0-f41.google.com with SMTP id k14so5321200oag.0 for ; Sun, 14 Oct 2012 18:40:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1b7+3/lD66TrcNUQldgdmCe9dnTSdoxK+oeiznWo0Qg=; b=VB9ScBZgHen9V5iwVD/UTxaypmcT3QEn7gw+nk7oukUAxsV46fQK8+7/ZEmQcqL/wb wkuZAW04Sphw4B8vU/ZQ11NlYqLChwJMPG4isn64S+biN3/HAPXAlNIbrAjU2+V6xC96 f30W2JJ/WrR4Kuym3FejW2utLPVR5Em8tKz37VnAoNjynJyanSw5hGkjKZbrk0b+W+5+ bvI3/pDcgHylcSaNtt2yReDfiXwtFJ0tbFdfO6ZzWSiBoRQzKs5VpquQCMn7Ta/JaH1n 8cLcuqncexQqMBxvVulhWoZKI2II+MuzA5QIYVLnAzF2YOxI/3Jx4Hp5WZ+WOJu/uYYb M1fA== Original-Received: by 10.60.26.72 with SMTP id j8mr2591987oeg.68.1350265226689; Sun, 14 Oct 2012 18:40:26 -0700 (PDT) Original-Received: by 10.182.26.110 with HTTP; Sun, 14 Oct 2012 18:40:26 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.219.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87263 Archived-At: --e89a8fb1f8d2307d8204cc0f1f8c Content-Type: text/plain; charset=ISO-8859-1 Hi, I want to turn-on the hide-show-minor-mode in a user-defined mymode. But it gives me the error: mymode doesn't support hide show minor mode. I have put (require 'hideshow) at the beginning of mymode.el, and also (hs-minor-mode 1) in the body of the definition of the major mode, and after that I put (add-to-list 'hs-special-modes-alist '(mymode "{" "}" "/[*/]" nil nil)) in mymode.el. What else I should do to utilize the hs-minor-mode in mymode? Thanks. --e89a8fb1f8d2307d8204cc0f1f8c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,=A0
=A0 =A0I want to turn-on the hide-show-minor-mode in a user-defi= ned mymode. But it gives me the error: mymode doesn't support hide show= minor mode. I have put =A0(require 'hideshow) at the beginning of mymo= de.el, and also=A0
(hs-minor-mode 1) in the body of the definition of the major mode, and= after that=A0
I put=A0(add-to-list 'hs-special-modes-alist &= #39;(mymode "{" "}" "/[*/]" nil nil)) in mymo= de.el.=A0

What else I should do to utilize the hs-minor-mode in m= ymode? Thanks.=A0


--e89a8fb1f8d2307d8204cc0f1f8c--