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: Re: outline-heading-alist for elisp using ";; * " Date: Tue, 11 May 2021 04:52:37 +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="7807"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Philip Kaludercic , Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 11 04:53:41 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 1lgIWi-0001uZ-Ur for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 04:53:40 +0200 Original-Received: from localhost ([::1]:59384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgIWh-0001EA-J2 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 10 May 2021 22:53:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgIWK-0001E2-EF for help-gnu-emacs@gnu.org; Mon, 10 May 2021 22:53:16 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:55195) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgIWE-0001Mh-Bl for help-gnu-emacs@gnu.org; Mon, 10 May 2021 22:53:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620701557; bh=GaWefnHm7ev4/Um9Eaqw3VggzyQUYkHbI/W2c+FoH+Y=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Djy4TI7cjFuq66bUkgEQ3hBc/kt56ac0G7HHghTw5wdghvFNvxeJ0bw2VRPh59u5O 6yRnhlX8Q3N51k6jmuFIiijWf6D+sn0DlIWHe8qy+WDzPUjp+kW6f/wndDZho4NH18 KK353ydYVJonCiHKXdvBooizmWj+0r021GZxILnQ= 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 04:52:37 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <878s4m5mbj.fsf@posteo.net> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:tZbF6jGudVLLm7EJQAhjmqT6zczs7brdMX2y0ef8JgG+7VQ5BL5/CrAlvyCFFfEN5t3YO RNRgHodYkwlTPSK3jc3ie50EC0JPJg15Vad84DPahbNLjttsfZPAo++p4SmDLj25PqvWaVoMaXXm qPhvXe9+9yxYTXwuvDMC6O2GgCftxeiiDQufVKTT/GL51a74U2y2V4NWAccA3K6k7YJ1paHNrq/s TFgJwhl+BELwIg4rDpeEa3FrryzeY+aNmAPij5HnR7E7m5mIApXttnvdCXRw7wXO1NxKDOwGAqPv Vw= X-UI-Out-Filterresults: notjunk:1;V03:K0:iimxrOB3h+A=:wsjMmrwj6odweTYfGZoHAz YLAdXTOWExY+rSKu6xwMN8rP6ct9nHy8RMtUfl0co2pWqc8vvnufegJa8LFVBcLiWFwiie5QX se/ZcD6cdV+gcKuzAeKN3D+JqMt36z9XeUXhTHYjJjI78AvdfMIHmlNSiXn47u07dlC3aopPQ D72Cf0VBCtc+PXap+z9WLRMSQEwpJloU0/BkKRRwq/0HNUQ4cByOmQ4OndRc5JkxWFqK8Cww+ 6JmAvw0lVaLRxqc8Xyus95cfoXUEGfTWMVPtuJYzN5Epxy/dFQOY4vleQ29mxVBFbhTaHgCQg +mRR2byqO98v+nDXOr+iys3PtmVHgb+4rLKRvGJH7nyd4kiPrcVEWnHRfzcI4bjHULiFhv7ay 93pdSEWpH8loBV95C2Fz9f4ARIJkl5+2h4h5HI9E5JcUeC9/r/Tj8FWothzrF+yaHxbazBYeI ZPhBL3/5p7YyZIb9tHQXB3V8+N/VUXwyXYSZA49uDErEE4cB0Sz0BzRfmdFjQLqRcnDBkyRxU EwWbpTNPNS8A2OAFo7cC+HOEIs3/QE87jE5TnMvThSTYUZN6kd7ICd9KgNg+emrqGdnhB6fDA yZLuWa9+peWjj1BtoR7VKLzV/crlc+xCf+gG8G2IM8qhAprht57cGsP4wNkcC13qZk2nSfTB3 VcSSMnTtc4MvRNumwmzzwawHRi/xppKtFYjO0BUxiL8M70wggkCTgGgZs3uCa7TeY5RoR7PM5 SKKvgB8n6jKxY8zRvyRisVKu3r94rgHZwEWo/7Gz9KUc+pFLgV537qLQ7puUCGKG2nSeg4e1 Received-SPF: pass client-ip=212.227.17.20; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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:129676 Archived-At: Have done this way, which works. But I want more that what the code produ= ces. Currently, the number af * do not determine heading levels as in org-mode. (add-hook 'emacs-lisp-mode-hook #'outline-minor-mode) (add-hook 'emacs-lisp-mode-hook (lambda () (set (make-local-variable 'outline-regexp) "*+"))) > Sent: Tuesday, May 11, 2021 at 9:08 AM > From: "Philip Kaludercic" > To: "Christopher Dimech" > Cc: "Help Gnu Emacs" > Subject: Re: outline-heading-alist for elisp using ";; * " > > Christopher Dimech writes: > > > I want to use ";; * " and so forth for subheadings but using the follo= wing code had > > no effect. > > > > > > (setq hstar > > '( (";; * " . 1) > > (";; ** " . 2) > > (";; *** " . 3) > > (";; **** " . 4) > > (";; ***** " . 5) > > (";; ****** " . 6) > > (";; ******* " . 7) > > (";; ******** " . 8) )) > > Why not use outline-regexp? ";; \\*+" should do the same job, if I'm not > mistaken. > > > ( (emacs-lisp-mode . ( > > (outline-heading-alist . hstar) ))) > > > > Where are you evaluating this? In .dir-locals.el? If so, what is the > local value of outline-heading-alist in an emacs-lisp buffer? > > > > > -- > Philip K. >