Article View: gnu.emacs.help
Article #189072Re: Help with text and fortran modes
From: Kjartan Stefansson
Date: Tue, 14 May 1991 02:19
Date: Tue, 14 May 1991 02:19
40 lines
2404 bytes
2404 bytes
mrt7455@evtprp0b (Michael R Tucker) writes:
> I need help on a few points with emacs. We are running 18.57 here
>and I would like to know if I can do somethings and if so how.
> 1) in text mode (or fundemental for that matter) I would like to have
> my editor do word wrap at the end of the line on the screen. I
> would like to be able to set what that screen end of line is. Can
> this be done in emacs and if so how?
I'm not sure what you want here. Do you want to break lines
automatically, say at column 72, wrapping words appropriately? Then
you can set fill-column to 72, and set auto-fill on. If you want this
to be done automatically for text mode, put the following in your
.emacs file:
(setq text-mode-hook '(lambda () (auto-fill-mode 1)
(set-fill-column 72)))
> 2) on the Apollo, the fortran compiler command that we use most of the
> time is /com/ftn.... the "ftn" compiler is looking for ".ftn"
> source files. Emacs recognizes ".f" fortran source files and sets
> the fortran mode appropriately. How do I add ".ftn" so that emacs
> recognizes these files as fortran source?
add to your .emacs:
(setq auto-mode-alist (add-to-klist "\\.ftn$" 'fortran-mode
auto-mode-alist))
I'm not sure how to do the other things you asked about.
>Michael Tucker Boeing Computer Services
>(206) 342-6168 M/S 03-87 P.O.Box 24346
>...uunet!bcstec!evtprp0b!mrt7455 Seattle, Washington
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Looks nice, but email bounced.
Kjartan
(stefan@cs.cornell.edu)
Technical Details
Message-ID:
<1991May14.021906.22395@cs.cornell.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zephyr.ens.tek.com!uw-beaver!cornell!stefanReferences:
<239@evtprp0b.UUCP>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,d84577e07ee9764d X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1991-05-14 15:58:33 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zephyr.ens.tek.com!uw-beaver!cornell!stefan From: stefan@CS.Cornell.EDU (Kjartan Stefansson) Newsgroups: gnu.emacs.help Subject: Re: Help with text and fortran modes Keywords: text, word wrap, fortran, .f, .ftn, tabs Message-ID: <1991May14.021906.22395@cs.cornell.edu> Date: 14 May 91 02:19:06 GMT References: <239@evtprp0b.UUCP> Sender: news@cs.cornell.edu (USENET news user) Distribution: gnu Organization: Cornell Univ. CS Dept, Ithaca NY 14853 Lines: 40 Nntp-Posting-Host: moot.cs.cornell.edu