From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.help Subject: Re: Column Numbers in emacs in F90 Environment? Date: Wed, 15 Nov 2006 23:17:42 -0800 Organization: None Message-ID: References: <1163648975.623511.94220@f16g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1163662840 21877 80.91.229.2 (16 Nov 2006 07:40:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Nov 2006 07:40:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 16 08:40:39 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GkbrK-0004q1-K9 for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Nov 2006 08:40:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GkbrJ-0006HU-DL for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Nov 2006 02:40:29 -0500 Original-Path: shelby.stanford.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: xoc2.stanford.edu Original-X-Trace: news.Stanford.EDU 1163661462 18027 171.64.109.31 (16 Nov 2006 07:17:42 GMT) Original-X-Complaints-To: news@news.stanford.edu X-Spook: Alliance of Eritrean National Force detonate PGP chinese X-Ran: hf-n@|5G3>C!pLq{`5sl)pnEp.`}#&hNc7hlm/v^9|zKFqRY%os^ =?B|jTudRLv List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:38749 Archived-At: "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)))