Thread View: comp.emacs
5 messages
5 total messages
Started by Charley Chen
Mon, 25 Jan 1993 18:22
auto-fill-mode
Author: Charley Chen
Date: Mon, 25 Jan 1993 18:22
Date: Mon, 25 Jan 1993 18:22
6 lines
437 bytes
437 bytes
Can someone tell me how to have auto-fill-mode on everytime I use emacs? besides using M-x auto-fill-mode everytime I use it. Thanks Charley
Re: auto-fill-mode
Author: bryan d oakley
Date: Mon, 25 Jan 1993 22:54
Date: Mon, 25 Jan 1993 22:54
24 lines
1308 bytes
1308 bytes
>>>>> Regarding auto-fill-mode; cc2955@sarah.albany.edu (Charley Chen) adds:
Charley> Can someone tell me how to have auto-fill-mode on everytime I
Charley> use emacs? besides using M-x auto-fill-mode everytime I use
Charley> it. Thanks
here's what's in my .emacs file (well, really my .emacs.el file, but
why cloud the issue?):
(setq text-mode-hook
'(lambda ()
(auto-fill-mode 1)
))
I also do this for mail-mode, outline-mode and dbx-mode. Add to your
own favorite major mode and get to work.
--
/''' ---------------------------------------------------------------
c-OO Instrument Approach Procedures Automation DOT/FAA/AMI-230
\ ---------------------------------------------------------------
- Bryan D. Oakley ctrbdo%iapa@constellation.uoknor.edu
Re: auto-fill-mode
Author: Charley Chen
Date: Tue, 26 Jan 1993 04:56
Date: Tue, 26 Jan 1993 04:56
12 lines
986 bytes
986 bytes
I ask before about how to get auto-fill-mode on whenever I use emacs and lots
of people reponded and all the reponse were the same
(setq text-mode-hook
'(lambda () (auto-fill-mode 1)))
but from what I can see I need to be in text mode or something. Usually get
the (Fundamental) mode and I still do, even after putting in that thing in
my .emacs. My question now is that do I have to compile it or do I need
something that will switch me to text mode right away? Thanks.
Charley
Re: auto-fill-mode
Author: Kai Grossjohann
Date: Tue, 26 Jan 1993 15:31
Date: Tue, 26 Jan 1993 15:31
39 lines
2541 bytes
2541 bytes
>>>>> On Tue, 26 Jan 93 04:56:34 GMT, >>>>> cc2955@sarah.albany.edu (Charley Chen) said: Charley> I ask before about how to get auto-fill-mode on whenever I use Charley> emacs and lots of people reponded and all the reponse were the same Charley> (setq text-mode-hook Charley> '(lambda () (auto-fill-mode 1))) Charley> but from what I can see I need to be in text mode or something. Charley> Usually get the (Fundamental) mode and I still do, even after Charley> putting in that thing in my .emacs. My question now is that do I Charley> have to compile it or do I need something that will switch me to Charley> text mode right away? Thanks. Hmmm... The idea in Emacs is that you don't want auto-fill-mode for, say C source files or other source code files. So they think that for each kind of file there is a special mode that does the right thing. If you really want, you can get auto-fill-mode for every file you visit by saying: (setq find-file-hooks '(lambda () (auto-fill-mode 1))) Note, however, that not every buffer belongs to a file. The *scratch* buffer you get when you start up Emacs without args does not belong to a file, so auto-fill-mode will be off there. However, I do not miss the feature of having auto-fill-mode in every buffer because my text files are usually in TeX-mode or LaTeX-mode or mail-mode or news-mode or something. Hope this gives you some info, /Kai -- Kai Grossjohann Phone (voice): 49 231 75 30 15 Baroper Str. 331 App. 510 E-Mail: W-4600 Dortmund 50 grossjoh@ls6.informatik.uni-dortmund.de Germany --
Re: auto-fill-mode
Author: Jeff Aitken
Date: Wed, 27 Jan 1993 08:00
Date: Wed, 27 Jan 1993 08:00
21 lines
1047 bytes
1047 bytes
cc2955@sarah.albany.edu (Charley Chen) writes:
:
: Can someone tell me how to have auto-fill-mode on everytime I use emacs?
: besides using M-x auto-fill-mode everytime I use it. Thanks
:
:
: Charley
I don't know if this will do it or not, but I have the following
line in my .emacs file and it seems to do what you're asking:
(setq-default auto-fill-hook 'do-auto-fill)
Hope this helps!
--
Jeff Aitken |
jaitken@csugrad.cs.vt.edu | Everyone is allowed to be stupid.
DEC User's Group Vice President | It's just that some people abuse
Va. Tech Computer Science Dept. | the priviledge.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads