Article View: news.software.nn
Article #2654Re: .emacs files
From: Kjartan Stefansson
Date: Mon, 06 Apr 1992 09:15
Date: Mon, 06 Apr 1992 09:15
27 lines
1651 bytes
1651 bytes
marosen@gandalf.rutgers.edu (Mark Rosen) writes:
>In my .emacs file, I've told it to wrap my typing, but when I'm
>following up, or replying, or mailing, and the emacs buffer comes up,
>it apparently hasn't read the .emacs file. Why not, and how can I
>change this, if anyone knows.
I use fill-mode for every text-mode buffer. That is done by the
following lines in .emacs:
(setq text-mode-hook '(lambda ()
(interactive)
(set-fill-column 67)
(turn-on-auto-fill)))
Then I tell emacs to enter text-mode for all nn-articles. Here I
use the fact that these will be files with names of the form
'nn.<something>'
(setq auto-mode-alist (append '(("/nn\." . text-mode))
auto-mode-alist))
And finally, as someone has pointed out, make sure that your EDITOR
environment variable is set to emacs (in your .cshrc file).
Kjartan Stefansson
(kjartan@daimi.aau.dk)
Technical Details
Message-ID:
<1992Apr6.091540.289@daimi.aau.dk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!wupost!micro-heart-of-gold.mit.edu!bloom-beacon!eru.mt.luth.se!lunic!sunic!dkuug!daimi!kjartanReferences:
<Apr.1.11.59.31.1992.9685@gandalf.rutgers.edu>Show Full Headers
Complete Article Headers
Message-ID: <1992Apr6.091540.289@daimi.aau.dk> Subject: Re: .emacs files Date: Mon, 06 Apr 1992 09:15:40 +0000 From: kjartan@daimi.aau.dk (Kjartan Stefansson) References: <Apr.1.11.59.31.1992.9685@gandalf.rutgers.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!wupost!micro-heart-of-gold.mit.edu!bloom-beacon!eru.mt.luth.se!lunic!sunic!dkuug!daimi!kjartan Newsgroups: news.software.nn Sender: kjartan@daimi.aau.dk (Kjartan Stefansson) Organization: DAIMI: Computer Science Department, Aarhus University, Denmark Lines: 27