Perhaps a prj.el file is overriding it.
Perhaps a .emacs.elc file is overriding it. In this case, you'll have to
open .emacs, and select lisp|byte-compile-this-file (or something like
that), then reopen emacs and see how it goes.
:)
- Original Message -
From: Ralph Jocham [EMAIL PROTECTED]
To: Schewe, Jon (MN65) [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, August 16, 2001 2:57 AM
Subject: RE: Automatic new line
Hi Guru(s)
I have the following lines in my .emacs file. Now I
added '(c-toggle-auto-hungry state 1)' but it has no
effect. I still have to call it manually from within
the .java buffer. For each, thats is cumbersome.
Any guesses why it does not work?
TIA
Ralph
(defun ralphs-java-mode-common-hook ()
(c-add-style PERSONALJ ralphs-java-style t)
;; now set all faces
(custom-set-faces
'(jde-java-font-lock-number-face class color)
(background light)) (:foreground RosyBrown
'(jde-java-font-lock-modifier-face class color)
(background light)) (:bold t :foreground plum1
'(jde-java-font-lock-link-face ((t (:italic nil
:underline t :foreground light blue
'(jde-java-font-lock-doc-tag-face class color)
(background light)) (:foreground yellowgreen
'(jde-java-font-lock-package-face class color)
(background light)) (:foreground grey90
'(speedbar-directory-face class color)
(background light)) (:foreground cyan4
'(speedbar-file-face class color) (background
light)) (:foreground cyan))
;; some more customization
;; I don't like tabs, give me spaces instead
(setq indent-tabs-mode nil)
;; delete is not a backspace
(setq delete-key-deletes-forward t)
;; Break the lines for me
(auto-fill-mode 1)
;; Use abbrevs
(abbrev-mode 1)
;; auto-newline and hungry-delete
(c-toggle-auto-hungry-state 1)
;; Load java specific macros
(load-file ~/.macros_java)
;; Assign macrocs to kbd shortcuts
(local-set-key [(meta p)] 'jde-show-class-source)
(add-hook 'java-mode-hook
'ralphs-java-mode-common-hook)
--- Schewe, Jon (MN65)
[EMAIL PROTECTED] wrote:
C-c C-a runs `c-toggle-auto-state'
`c-toggle-auto-state' is an interactive compiled
Lisp function
-- loaded from cc-cmds
(c-toggle-auto-state optional ARG)
Documentation:
Toggle auto-newline feature.
Optional numeric ARG, if supplied, turns on
auto-newline when
positive, turns it off when negative, and just
toggles it when zero or
left out.
When the auto-newline feature is enabled (as
evidenced by the `/a' or
`/ah' on the modeline after the mode name) newlines
are automatically
inserted after special characters such as brace,
comma, semi-colon,
and colon.
-Original Message-
From: Ralph Jocham [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 14, 2001 4:49 PM
To: [EMAIL PROTECTED]
Subject: Automatic new line
Hi,
once I had Emacs set up to auto indent and jump
into
the next line whenever I typed '{', '{', ';'.
What is the trick to set this up?
Thanks in advance,
Ralph