From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Adam Hardy Newsgroups: gmane.emacs.help Subject: auto-fill mode in java-mode Date: Sun, 12 Oct 2003 00:07:00 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3F887F04.6070207@cyberspaceroad.com> Reply-To: help-gnu-emacs@gnu.org NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1065910232 28140 80.91.224.253 (11 Oct 2003 22:10:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 11 Oct 2003 22:10:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 12 00:10:31 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A8RwU-00049H-00 for ; Sun, 12 Oct 2003 00:10:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A8RuU-0001t6-NO for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Oct 2003 18:08:26 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A8RuJ-0001sl-UY for help-gnu-emacs@gnu.org; Sat, 11 Oct 2003 18:08:15 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A8Rtn-0001o8-5p for help-gnu-emacs@gnu.org; Sat, 11 Oct 2003 18:08:15 -0400 Original-Received: from [212.227.126.186] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A8Rtm-0001ns-Lj for help-gnu-emacs@gnu.org; Sat, 11 Oct 2003 18:07:42 -0400 Original-Received: from [212.227.126.207] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1A8Rtl-0007lA-00 for help-gnu-emacs@gnu.org; Sun, 12 Oct 2003 00:07:41 +0200 Original-Received: from [217.228.246.38] (helo=cyberspaceroad.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1A8Rtk-0004Os-00 for help-gnu-emacs@gnu.org; Sun, 12 Oct 2003 00:07:40 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925 X-Accept-Language: de-de, en, en-us Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13144 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13144 I'm trying to get my java-mode to wrap lines at 75 cols and I've not got it working. I'm pretty sure that my java-mode settings, which sets it up just how I want it except the wrapping, must be inhibiting auto-fill, but I can't see how. This is my java-mode lisp in .emacs: (add-hook 'java-mode-hook '(lambda () ;; Konfiguration des Javamodes (c-set-style '"Java") (setq c-basic-offset 4) (c-set-offset 'topmost-intro-cont c-basic-offset) (c-set-offset 'inline-open 0) (c-set-offset 'inclass 4) (c-set-offset 'substatement-open 0) (c-set-offset 'block-open '-) (c-set-offset 'objc-method-intro 'c-lineup-arglist-intro-after-paren) ;; Konfiguration verschiedener Features (setq c-electric-pound-behavior '(alignleft)) ;; allgemeine Konfiguration (set-variable 'comment-column 40) ;; Konfiguration der Funktionalitaet der Returntaste (local-set-key [return] 'newline-and-indent) (local-set-key [S-return] 'newline) (local-set-key [C-return] 'c-mark-function))) ;; Turn on auto-fill-mode in desired modes (setq-default fill-column 75) (add-hook 'java-mode-hook 'turn-on-auto-fill) Thanks for any help. Adam -- GNU Emacs 21.3.1 on Linux 2.4.20 RH9