Anthony Berglas writes: > 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?
This is typically a symptom of an error in your setup that aborts loading of the JDEE before it gets a chance to invoke the jde-mode hook function. - Paul