From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: pietru@caramail.com Newsgroups: gmane.emacs.help Subject: headings for texinfo-mode using outline-minor-mode Date: Wed, 12 May 2021 04:39:27 +0200 Message-ID: References: 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="38261"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: pietru@caramail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 12 04:39:59 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 1lgen0-0009nq-D9 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 12 May 2021 04:39:58 +0200 Original-Received: from localhost ([::1]:42994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgemy-0007HL-AM for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 22:39:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgema-0007Fy-7S for help-gnu-emacs@gnu.org; Tue, 11 May 2021 22:39:32 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:47867) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgemY-0000Bj-8V for help-gnu-emacs@gnu.org; Tue, 11 May 2021 22:39:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620787167; bh=ADXa0e3YiXu/Pvp/UoBGoWf/lzPq3Mbu0G/hdR9/j/0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=C1cZ79xkJAbq1kPofoHS0zEOBhKTfV8qhrq+AuO2ooSwioEyCjMHhUWdP/duNEY5U iTPr8uEspwhCMNUPf9XB7Wdv4CzK3XvNkFzLlLdTFQUZWJYeLpKSH6CkV02N55Wh7o PaoiMos+xQSH6+7OZeoiX++ac+CWf8MxzrKWB3EI= 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-bs13.server.lan [172.19.170.181]) (via HTTP); Wed, 12 May 2021 04:39:27 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:MFU95iM56W5NqK5HRjU4YWUOfBgXqMlJRG/PADrwEFvRzq15u5xEiNKzXBI6k1rhAvInf FMW3rcfaWMQnM0nE6f+MagjkOxoYM8aqfkx2fDGyZsf6PD+V3VJROdMA+3Scey1i25ibw7Yn3wzb T1jHNZfE5W6DFvaqe+/cjzc1UHYlBxG1SmGHLhoc51UVOj6lIr+hmiOgBHzgSFmmtEMqc7kYltx4 z7Ma6tpTpx9N1a5rFyeOVgIGQA+kRL5s3ePtW9hVq/lzVZREGLp9GM4+6Fn1/zVnJoIGclaWqIeo ic= X-UI-Out-Filterresults: notjunk:1;V03:K0:1EcEaAI8iyA=:F4sse5JjM7HlUZgoLveJPr 9MnBXrycT/BVEtbElCLX+/0l1MOFD48c0Hf+T3nMfj//BRLYKKIbKhp6RAwND8jEDKgzrbhd+ yKygMqOzXQeoaovEx7z61tlYu/Py94RLlFoEA5dS/feDmpGNsQbxkpVgcxwV8uA3Z4dt/QNXQ 79La1xxte/k9wlbBU74QRkKmR+RSagKb055XX2MILS1PwutvKw252U6yAzWehKLQJBWSSC+90 wtSIS7afXs2kPuHFPyh8v/3G4qOxmGgtbvAkyRmUiU9l8ka2Ry1ij/Jx0XNkR9wDc5j2IdtdV oiq4PAlzQrzzb43VhbEcj6bax5CS4aKEKdJsjIlw4L0+G/WUpyiV0TnQXKCdkF2LyaCL3UA4C UI3ZL6gim6Wk6UUjGth8PW1LCHMfPyysdO+ViySrZfbzh/L+y5dhovKCUbrGrdEKkwo/eyKmB CJ+3InkVYHWwP+IWZ/qmNAk/dSnTWQ76ZxhByHKnhNKk6VnalgnM6SZ4TxaP38S+ej2ynFdUO irg9Fnu0zu/CusAxy/2WJ2DosQQM1sR9G98l05dM9IrxndjiPo/K99WeyMTTwEEhjSx5KKfUb oFiqWlkswKXgX1hIQ4zjYVdznPE2oYPmQC5wgZCGexeUw8v/oa2ZIcv3sl6Pv1OiU9ez4a/1t gue3q+yVMj3wY32lSSp4X1+wf6hkyvx0EzuaJTkaJazCfNj+h+H9EqZHzooiY3gkwUzNCIezL 0Nj+fl6jx+vuiQ4CQsoZ4KGpARENtf7ZhfvEgWGBsQo2dcoq2iIhFEBOKBWlZy4gAdioM5/y Received-SPF: pass client-ip=212.227.15.18; envelope-from=pietru@caramail.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:129710 Archived-At: I have found it better to have a separate function that sets "outline-head= ing-alist" for a specific language, then I can do my add-hook to the "hdlevels" funct= ion. Still I think that my crode needs some more beef. (defun gilgamesh-texinfo-hdlevels () "todo" (setq outline-heading-alist '(("@chapter" . 2) ("@section" . 3) ("@subsection" . 4) ("@subsubsection" . 5) ;; --------------------------------------------------- ("@unnumbered" . 2) ("@unnumberedsec" . 3) ("@unnumberedsubsec" . 4) ("@unnumberedsubsubsec" . 5) ;; --------------------------------------------------- ("@appendix" . 2) ("@appendixsec" . 3)... ("@appendixsubsec" . 4) ("@appendixsubsubsec" . 5) ;; --------------------------------------------------- ("@uchap" . 2) ("@usec" . 3) ("@usubsec" . 4) ("@usubsubsec" . 5) ..)) ) (defun gilgamesh-texinfo () "todo" (add-hook 'texinfo-mode-hook #'gilgamesh-texinfo-hdlevels) ) > Sent: Wednesday, May 12, 2021 at 2:16 PM > From: pietru@caramail.com > To: "Help Gnu Emacs" > Subject: headings for texinfo-mode using outline-minor-mode > > I want to use my own heading levels in texinfo as I also have > my own sectioning macros @uchap, @usec, @usubsec, @usubsubsec. > > But I require some help setting things up. > > (defun outline-mesh-texinfo () > "todo" > > (setq outline-heading-alist > '(("@chapter" . 2) > ("@section" . 3) > ("@subsection" . 4) > ("@subsubsection" . 5) > ;; --------------------------------------------------- > ("@unnumbered" . 2) > ("@unnumberedsec" . 3) > ("@unnumberedsubsec" . 4) > ("@unnumberedsubsubsec" . 5) > ;; --------------------------------------------------- > ("@appendix" . 2) > ("@appendixsec" . 3)... > ("@appendixsubsec" . 4) > ("@appendixsubsubsec" . 5) > ;; --------------------------------------------------- > ("@chap" . 2) > ("@usec" . 3) > ("@usubsec" . 4) > ("@usubsubsec" . 5) )) > > (add-hook 'texinfo-mode-hook #'???) > > ) > > > > > > > Sent: Wednesday, May 12, 2021 at 4:43 AM > > From: pietru@caramail.com > > To: "Help Gnu Emacs" > > Subject: headings for texinfo-mode using outline-minor-mode > > > > What do headings start with for texinfo-mode, when using outline-minor= -mode? > > > > > > > > > >