[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: auto-fill mode in java-mode
From: |
Alan Mackenzie |
Subject: |
Re: auto-fill mode in java-mode |
Date: |
Mon, 13 Oct 2003 09:10:53 +0000 |
User-agent: |
tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) |
Adam Hardy <emacs@cyberspaceroad.com> wrote on Sun, 12 Oct 2003 00:07:00
+0200:
> I'm trying to get my java-mode to wrap lines at 75 cols and I've not
> got it working.
What do you mean by "lines"? In the CC Modes, only comments get
auto-filled by default. Are your comment lines getting auto-filled? Do
you also want code lines to get auto-filled?
If you want lines of code to get filled too, set the user option
c-ignore-auto-fill. For example, in your mode hook add something like
(setq c-ignore-auto-fill '(cpp))
which will fill everything but preprocessor lines (do such exist in
Java?). c-ignore-auto-fill is fully documented on the page "Text Filling
and Line Breaking" in the CC Mode info pages.
I'm not sure how useful the auto-filling is in lines other than comment
lines.
[ .... ]
> Thanks for any help.
Best of luck! Come back again if the above doesn't help.
> Adam
> --
> GNU Emacs 21.3.1 on Linux 2.4.20 RH9
--
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").
- auto-fill mode in java-mode, Adam Hardy, 2003/10/11
- Re: auto-fill mode in java-mode,
Alan Mackenzie <=
- Re: auto-fill mode in java-mode, Adam Hardy, 2003/10/13
- Message not available
- Re: auto-fill mode in java-mode, Alan Mackenzie, 2003/10/17
- Re: auto-fill mode in java-mode, Adam Hardy, 2003/10/17
- Re: auto-fill mode in java-mode, Stefan Monnier, 2003/10/17
- Re: auto-fill mode in java-mode, Adam Hardy, 2003/10/18
- Message not available
- Re: auto-fill mode in java-mode, Johan Bockgård, 2003/10/18
- Message not available
- Re: auto-fill mode in java-mode, lawrence mitchell, 2003/10/18
- Message not available
- Re: auto-fill mode in java-mode, Micah Cowan, 2003/10/19