all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philip Kaludercic <philipk@posteo.net>
To: ludvig-faddeev@gmx.com
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Re: outline-minor-mode for fortran
Date: Fri, 28 May 2021 18:23:41 +0000	[thread overview]
Message-ID: <871r9q7m4y.fsf@icterid> (raw)
In-Reply-To: <trinity-537b26a9-7be8-488f-bf97-5589f3b24337-1622223719566@3c-app-mailcom-bs01> (ludvig-faddeev@gmx.com's message of "Fri, 28 May 2021 19:41:59 +0200")

ludvig-faddeev@gmx.com writes:

> Can one use outline-minor-mode for fortran and what is used to define
> headings?

I have never really used fortran-mode, but would this work

        (add-hook 'fortran-mode-hook
                  (lambda ()
                    (setq-local outline-regexp fortran-start-prog-re)))

Basically every line that starts with "program", "subroutine, etc. is
seen as a outline-header.

-- 
	Philip K.



  parent reply	other threads:[~2021-05-28 18:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-28 17:41 outline-minor-mode for fortran ludvig-faddeev
2021-05-28 17:50 ` ludvig-faddeev
2021-05-28 18:23 ` Philip Kaludercic [this message]
2021-05-28 18:43   ` ludvig-faddeev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871r9q7m4y.fsf@icterid \
    --to=philipk@posteo.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ludvig-faddeev@gmx.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.