From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: outline-heading-alist for elisp using ";; * " Date: Tue, 11 May 2021 07:17:46 +0200 Message-ID: References: <878s4m5mbj.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24201"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philip Kaludercic , Help Gnu Emacs To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 11 07:18:45 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lgKn5-00069y-Jg for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 07:18:43 +0200 Original-Received: from localhost ([::1]:38162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgKn4-0001RC-I7 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 01:18:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgKmj-0001R0-Uj for help-gnu-emacs@gnu.org; Tue, 11 May 2021 01:18:21 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:47967) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgKmi-0007du-4z for help-gnu-emacs@gnu.org; Tue, 11 May 2021 01:18:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620710266; bh=QWtOfptt69cggEPvEDh9+Hl4USqfY/OWhO4+I0/XfeI=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=IT6lcwdw/YJmWvJPB++OOITfdYt8lTqwJKQBGR3COP1In8hE+XK6+iH0b8ve0KYcc aiiSkYXwwbwdeK5TnN9haJ0E7UAjsrGcMh2tCoXybfbXUY2Eu+CDWvzeZt1KFUxF7i jJ67pHr1U2V8XfJHrIW0AQjLhofHGSiR105CUKqI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs03.server.lan [172.19.170.169]) (via HTTP); Tue, 11 May 2021 07:17:46 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:lEhu/XyhU+eI5HLYfWUA8DUkEVHRiSKznIIndYxjR3hrMmc+QOJDy2/d7owyASPgW+VB6 mXxmbOZG5kSEtXSCXTQuyr5ioV6/59EctRzLAbhSohtRKzAIjoPi7e8qREhnX6yzfiZMT1m87jiQ lkrwFB7brbTdGfyrQUHMOoDbOFSLao6TElDHn4LT8Ku9E2ABG++xrs+mTcJwVjYKbTrAqsC8sMaX cRTeUXMPHHHUJ7uCn2YWKd6KAm4JizxnMYnR9cztm8qCWOgTObHkkIlpNY/zRbxV8e8AYAb3fyVf Tc= X-UI-Out-Filterresults: notjunk:1;V03:K0:DRpCw40S3kY=:TYjN9g7Gp/txUwoGUqRTl2 2atyLJp3LhEvPpZdnOUGd1nI7bUglvsm/k3olLElHSesgWbCiusc6E8A5ai9q3+5m8txp1W4d io+McdyYTh36y0nDPLgRqdTuUvbQ8FnPI1SYuqMO5SxJnmY78hS7r3/J8rp76uBe4HPPLuqEO 278F5frsOc7CPXP5grJiarY8Q04FPMTwSCXFsaMoXNilYpFu6c5+Vk3YtCtMFf5u9OfiE+emk caG1wWro/BhRvAceN3KiyKxWMUaoDmdo+u4IsOlx6jqFgwLSO2zC3RyMpcp/LB/vgMQk4D0l/ 8P6+57s4tDu/fjr38rPUUKHdH+rTUzOx1Z+HuPpJS4Jy68lI2orqG0ooytKTo+M9vRsTVISOS N1auIJHyqQJFqZKG9MJc8/e5x+RkuEXYdg3bA+nWKXw/U27lU+6sfU2n9vKxUV03iwYKjH8Ce 7rSU2HK7a/lMLbBtvtlxzEgA6KZshG10AzXjZeTgpBZxUcohpscsZgwqMgwJWehZan16IaPbp hKH4t3ACH5gsFO6I7rEZJzkgt0JbkqQtqBQ9vuexIKNZbdtsOmzbWb84anLr7jRQGS9fmnJBu WPYp7T0T1wY/HxmJGQmXbpDKXyiOuol/+5w9z/x0RUffXML1xTFRM1wRUd5sZ1o1rUyWJYxLC t4UdUfhQkY4GR5edsWQKHWHvLp6uWJ+e0mmSUSexGbizO4dRcmDSxDNFE0bAhRdnbhgpnDuYL Tj+IHcIb7vyY2fomC4g8tfyHzzqXBZxP9Bu1V55VwWZIyoup2DF1SQUxfcEKUlyLZMS43jQM Received-SPF: pass client-ip=212.227.15.15; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129681 Archived-At: This is what I have done (add-hook 'emacs-lisp-mode-hook #'outline-minor-mode) ;; set regularity condition ;;(setq rgc ";;; \\*+ ") (setq rgc ";;; \\([A-Za-z]\\|[IVXLCDMivxlcdm0-9]+\\) | ") (add-hook 'emacs-lisp-mode-hook (lambda () (set (make-local-variable 'outline-regexp) rgc))) Now starts the task of setting a keybinding that if I continue to press it will cycle the folding/unfolding of headlines only. And a different keybi= nding that cycles the folding/unfolding of code. Regards Christopher > Sent: Tuesday, May 11, 2021 at 4:50 PM > From: "Jean Louis" > To: "Philip Kaludercic" > Cc: "Christopher Dimech" , "Help Gnu Emacs" > Subject: Re: outline-heading-alist for elisp using ";; * " > > * Philip Kaludercic [2021-05-11 00:09]: > > Why not use outline-regexp? ";; \\*+" should do the same job, if I'm n= ot > > mistaken. > > It works here, great. > > -- > Jean > > Take action in Free Software Foundation campaigns: > https://www.fsf.org/campaigns > > Sign an open letter in support of Richard M. Stallman > https://stallmansupport.org/ > https://rms-support-letter.github.io/ > > >