all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* auto-fill mode in java-mode
@ 2003-10-11 22:07 Adam Hardy
  0 siblings, 0 replies; 10+ messages in thread
From: Adam Hardy @ 2003-10-11 22:07 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-10-19  9:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1541.1065910097.21628.help-gnu-emacs@gnu.org>
2003-10-13  9:10 ` auto-fill mode in java-mode Alan Mackenzie
2003-10-13 21:58   ` 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

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.