unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Glenn Morris <gmorris+news@ast.cam.ac.uk>
Subject: Re: Emacs Fortran90 mode....
Date: Tue, 27 May 2003 15:36:44 +0100	[thread overview]
Message-ID: <1on0h8ihhf.fsf@xpc14.ast.cam.ac.uk> (raw)
In-Reply-To: mailman.6834.1054044437.21513.help-gnu-emacs@gnu.org

Mika Salonoja wrote:

> I'm just beginning to use Emacs on Debian Linux for Fortran 90/95
> programming and I have three (hopefully) elemental questions:

Wow, two Fortran questions in g.e.h in one day!

> 1. How do I set Emacs f90 mode so, that all the indents and
>    capitalized keywords appear automatically. Now they're available as
>    menu options, but cannot be left permanently "on"

I don't know what you mean with respect to the indentation appearing
"automatically". Pressing the tab key on a line of code will indent
it. F90 mode has the command `f90-indent-subprogram', on C-M-q, which
will indent the whole of the current subprogram.
`f90-indent-new-line', C-j, will indent the current line and start a
new, indented line.

To have keywords be capitalized automatically in f90-mode, add the
following to your .emacs file:

(setq f90-auto-keyword-case 'capitalize-word)

Or you can use the customize interface (see below) to achieve the
same result.

> 2. Where can I find more info about emacs f90 mode? Are there, for
>    example, different kinds of .emacs files available which I could
>    try to use?

The commentary section at the start of the file f90.el describes some
of the possibilities. I'm afraid there is no section about F90 mode in
the Emacs manual (I started writing one a while ago but haven't
finished it). You could use M-x customize-group f90 to see what
choices are available. 

> 3. I use emacs with KDE 3.1 and I have a roller mouse. Most Linux
>    editors and other GUI-programs scroll up and down with the mouse
>    roller whell, but Emacs does not. Why is that?

The luxury of choice (or something...)

There are various ways to enable mouse wheel support. Try:

(require 'mwheel)
(mwheel-install)

in your .emacs.

       reply	other threads:[~2003-05-27 14:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.6834.1054044437.21513.help-gnu-emacs@gnu.org>
2003-05-27 14:36 ` Glenn Morris [this message]
2003-05-27 14:58   ` Emacs Fortran90 mode Stefan Monnier
2003-05-27 23:09     ` Glenn Morris
2003-05-28 12:51   ` Dr. F.C.Caner
2003-05-28 14:43     ` Stefan Monnier
2003-05-27 13:59 Mika Salonoja

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=1on0h8ihhf.fsf@xpc14.ast.cam.ac.uk \
    --to=gmorris+news@ast.cam.ac.uk \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).