From: Glenn Morris <rgm+news@stanford.edu>
Subject: Re: Column Numbers in emacs in F90 Environment?
Date: Wed, 15 Nov 2006 23:17:42 -0800 [thread overview]
Message-ID: <p1lkmblv1l.fsf@xoc2.stanford.EDU> (raw)
In-Reply-To: 1163648975.623511.94220@f16g2000cwb.googlegroups.com
"qquito" wrote:
> When I edit Fortran 77 codes in emacs, I can use the command
> Control-C and Control-R sequentially to display a ruler temporarily
> showing column numbers. But this command does not work when I edit
> Fortran 90 codes. Is there a similar command in Fortran 90
> environment?
If column numbers matter to you, it sounds like the files you are
editing are fixed-form, rather than free-form. In which case, you want
to edit them in fortran-mode rather than f90-mode, even if they are
Fortran 90 files. A bit confusing, but the confusion is Fortran's (eg
most compilers interpret .f90 files to be free-form and .f to be fixed
form).
If so, you can:
1) put
C -*- fortran -*-
as the first line of the files to get Emacs to open them in
fortran-mode.
2) change the mode Emacs uses for .f90 files:
(add-to-list 'auto-mode-alist '("\\.f90\\'" . fortran-mode))
If you really do just want the ruler for some reason:
(autoload 'fortran-column-ruler "fortran" nil t)
(add-hook 'f90-mode-hook (lambda ()
(local-set-key "\C-c\C-r" 'fortran-column-ruler)))
prev parent reply other threads:[~2006-11-16 7:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-16 3:49 Column Numbers in emacs in F90 Environment? qquito
2006-11-16 7:17 ` Glenn Morris [this message]
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=p1lkmblv1l.fsf@xoc2.stanford.EDU \
--to=rgm+news@stanford.edu \
/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.