From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Ambrose Kofi Laing & Ralph Neelante Amissah [Emacs] sisu-mode.el - a major-mode for highlighting a structured text Date: Sun, 21 Feb 2016 10:51:03 -0500 Message-ID: References: <20160218221933.GA32234@niu> <20160219061802.GA29619@niu> <20160221070443.GA4007@niu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456069893 31782 80.91.229.3 (21 Feb 2016 15:51:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Feb 2016 15:51:33 +0000 (UTC) Cc: Kevin Ryde , Ambrose Kofi Laing , emacs-devel@gnu.org To: Ralph Amissah Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 21 16:51:14 2016 Return-path: Envelope-to: ged-emacs-devel@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 1aXWHx-0002PA-OJ for ged-emacs-devel@m.gmane.org; Sun, 21 Feb 2016 16:51:13 +0100 Original-Received: from localhost ([::1]:42012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXWHx-0006cj-9M for ged-emacs-devel@m.gmane.org; Sun, 21 Feb 2016 10:51:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXWHu-0006cR-Kd for emacs-devel@gnu.org; Sun, 21 Feb 2016 10:51:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXWHp-0007f1-Kl for emacs-devel@gnu.org; Sun, 21 Feb 2016 10:51:10 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:35775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXWHp-0007ew-Gv for emacs-devel@gnu.org; Sun, 21 Feb 2016 10:51:05 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CVDQA731xV/+OhCkxcgxCEAsEVh0sEAgKBPDoTAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQHCxQYDSSINwjPIwEBAQEGAQEBAR6LOoUFB4QtBYwwpw+BRSOCChwVgVsggngBAQE X-IPAS-Result: A0CVDQA731xV/+OhCkxcgxCEAsEVh0sEAgKBPDoTAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQHCxQYDSSINwjPIwEBAQEGAQEBAR6LOoUFB4QtBYwwpw+BRSOCChwVgVsggngBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="193811046" Original-Received: from 76-10-161-227.dsl.teksavvy.com (HELO ceviche.home) ([76.10.161.227]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 21 Feb 2016 10:51:04 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id B90B6661BB; Sun, 21 Feb 2016 10:51:03 -0500 (EST) In-Reply-To: <20160221070443.GA4007@niu> (Ralph Amissah's message of "Sun, 21 Feb 2016 02:04:43 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:200382 Archived-At: > +;; enables outlining for sisu > +(add-hook 'sisu-mode-hook > + 'outline-minor-mode) >> Finally, it's generally preferred to put such code directly in the >> sisu-mode function and leave the sisu-mode-hook nil by default. > I did not get this quite If you want to enable outline-minor-mode, then you can add (outline-minor-mode 1) at the end of the `sisu-mode' function. This way sisu-mode-hook will still be empty by default, as is the convention. > I did a diff against the original file and put a few things back (e.g. the > triple curly braces). Thanks, installed. Stefan