2 Dec 2009 15:44
Activating idle-summary for a single major-mode
Joel Borggren-Franck <jbf <at> kth.se>
2009-12-02 14:44:09 GMT
2009-12-02 14:44:09 GMT
Hi I'm trying to activate semantic-idle-summary-mode automatically when in java-major-mode (and only then). So far I have tried countless permutations of add-hook (setq vs function, append vs prepend): ;; ;; Activate semantic-idle-summary-mode for Java ;; (defun my-java-mode-hook () ;; Â (semantic-idle-summary-mode 1)) ;; (add-hook 'java-mode-hook 'my-java-mode-hook t) But all I get is this: File mode specification error: (error "Buffer Test.java was not set up for parsing") The funny thing is that I have no problem activating the mode manually with M-x semantic-idle-summary-mode. My semantic setup is as follows (and I'm running on cedet-1.0pre6): ;; CEDET/semantic (load-file "~/lib/elisp/cedet/common/cedet.el") (semantic-load-enable-minimum-features) (global-semanticdb-minor-mode 0) (setq semanticdb-default-save-directory "~/semantic") (require 'semantic-gcc) ;; Add tags found by sematic to imenu(Continue reading)
RSS Feed