Anthony, I don't is it makes a difference, but I add my hook to java-mode-hook, not jde-mode-hook. Jeff
----- Original Message ----- From: "Anthony Berglas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 04, 2002 3:42 PM Subject: Cannot Set Indentation 2, (setq c-basic-offset 2) broken | Hello All, | | I want to set the basic indentation to be two characters rather than 4. Is | this possible using JDE? The following used to sort of work, but the hook | did not appear to fire -- I had to explicitly call ajb-jde-mode-hook | whenever I visited a new buffer. | | (defun ajb-jde-mode-hook () | (interactive) | (message "ajb-jde-mode-hook function executed") | (setq c-basic-offset 2) | ) | (add-hook 'jde-mode-hook 'ajb-jde-mode-hook) | | Then it mysteriously failed to work altogether! | | Is there a better way? | | Thanks, | | Anthony