From: Alan Mackenzie<none@example.invalid>
Subject: Re: auto-fill mode in java-mode
Date: Mon, 13 Oct 2003 09:10:53 +0000 [thread overview]
Message-ID: <t6qdmb.16.ln@acm.acm> (raw)
In-Reply-To: mailman.1541.1065910097.21628.help-gnu-emacs@gnu.org
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").
next parent reply other threads:[~2003-10-13 9:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1541.1065910097.21628.help-gnu-emacs@gnu.org>
2003-10-13 9:10 ` Alan Mackenzie [this message]
2003-10-13 21:58 ` auto-fill mode in java-mode Adam Hardy
[not found] ` <mailman.1632.1066082371.21628.help-gnu-emacs@gnu.org>
2003-10-16 21:16 ` Alan Mackenzie
2003-10-17 9:38 ` Adam Hardy
2003-10-17 14:49 ` Stefan Monnier
2003-10-18 17:15 ` Adam Hardy
[not found] ` <mailman.1944.1066497425.21628.help-gnu-emacs@gnu.org>
2003-10-18 21:03 ` Johan Bockgård
2003-10-18 21:23 ` lawrence mitchell
2003-10-19 9:07 ` Micah Cowan
2003-10-11 22:07 Adam Hardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=t6qdmb.16.ln@acm.acm \
--to=none@example.invalid \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.