From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.help Subject: Re: Emacs Fortran90 mode.... Date: Tue, 27 May 2003 15:36:44 +0100 Organization: None Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1on0h8ihhf.fsf@xpc14.ast.cam.ac.uk> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054046517 12503 80.91.224.249 (27 May 2003 14:41:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 27 May 2003 14:41:57 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue May 27 16:41:55 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Kfcg-00036G-00 for ; Tue, 27 May 2003 16:40:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Kfct-0004jl-Iv for gnu-help-gnu-emacs@m.gmane.org; Tue, 27 May 2003 10:40:31 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!server1.netnews.ja.net!pegasus.csx.cam.ac.uk!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 48 Original-NNTP-Posting-Host: xpc14.ast.cam.ac.uk X-Attribution: GM Mail-Copies-To: never User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cancel-Lock: sha1:zdVnFwMxBh4iacSPAgbTggor38Y= Original-Xref: shelby.stanford.edu gnu.emacs.help:113738 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10233 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10233 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.