* Emacs Fortran90 mode....
@ 2003-05-27 13:59 Mika Salonoja
0 siblings, 0 replies; 6+ messages in thread
From: Mika Salonoja @ 2003-05-27 13:59 UTC (permalink / raw)
Hi there.
I'm just beginning to use Emacs on Debian Linux for Fortran 90/95
programming and I have three (hopefully) elemental questions:
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"
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?
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?
regards,
Mika
Mika Salonoja, CTO
phone +358-9-4366250, fax +358-9-43662523
mobile +358-40-5685088
email mika.salonoja@geneos.fi
GeneOS, P.O.Box 25, FIN-00251 Helsinki
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emacs Fortran90 mode....
[not found] <mailman.6834.1054044437.21513.help-gnu-emacs@gnu.org>
@ 2003-05-27 14:36 ` Glenn Morris
2003-05-27 14:58 ` Stefan Monnier
2003-05-28 12:51 ` Dr. F.C.Caner
0 siblings, 2 replies; 6+ messages in thread
From: Glenn Morris @ 2003-05-27 14:36 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emacs Fortran90 mode....
2003-05-27 14:36 ` Emacs Fortran90 mode Glenn Morris
@ 2003-05-27 14:58 ` Stefan Monnier
2003-05-27 23:09 ` Glenn Morris
2003-05-28 12:51 ` Dr. F.C.Caner
1 sibling, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2003-05-27 14:58 UTC (permalink / raw)
> There are various ways to enable mouse wheel support. Try:
> (require 'mwheel)
> (mwheel-install)
The official way is (mouse-wheel-mode 1)
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emacs Fortran90 mode....
2003-05-27 14:58 ` Stefan Monnier
@ 2003-05-27 23:09 ` Glenn Morris
0 siblings, 0 replies; 6+ messages in thread
From: Glenn Morris @ 2003-05-27 23:09 UTC (permalink / raw)
"Stefan Monnier" wrote:
> The official way is (mouse-wheel-mode 1)
Someone ought to change the commentary of mwheel.el then. :)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emacs Fortran90 mode....
2003-05-27 14:36 ` Emacs Fortran90 mode Glenn Morris
2003-05-27 14:58 ` Stefan Monnier
@ 2003-05-28 12:51 ` Dr. F.C.Caner
2003-05-28 14:43 ` Stefan Monnier
1 sibling, 1 reply; 6+ messages in thread
From: Dr. F.C.Caner @ 2003-05-28 12:51 UTC (permalink / raw)
Here is the 3rd question of the day:
I am wondering if f90-imenu can be modified so that it also lists all
the (used) functions in the used modules, regardless of whether those
modules are being visited by emacs or not. If one clicks on an item in
the f90-imenu, file containing that subroutine/function must be
visited and the current point must move to the beginning of that
subroutine/function. Wouldn't this be nice?
I don't know how difficult to implement this though (I have little
knowledge in lisp).
Best,
FCC.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Emacs Fortran90 mode....
2003-05-28 12:51 ` Dr. F.C.Caner
@ 2003-05-28 14:43 ` Stefan Monnier
0 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2003-05-28 14:43 UTC (permalink / raw)
> Here is the 3rd question of the day:
> I am wondering if f90-imenu can be modified so that it also lists all
> the (used) functions in the used modules, regardless of whether those
> modules are being visited by emacs or not. If one clicks on an item in
> the f90-imenu, file containing that subroutine/function must be
> visited and the current point must move to the beginning of that
> subroutine/function. Wouldn't this be nice?
I think it's a bit outside of the scope of `imenu' and more
the job of etags. M-! etags *.f90 RET and then M-. somefun RET
should do what you want, more or less.
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-05-28 14:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.6834.1054044437.21513.help-gnu-emacs@gnu.org>
2003-05-27 14:36 ` Emacs Fortran90 mode Glenn Morris
2003-05-27 14:58 ` 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
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).