public
Description: A mac-oriented emacs configuration bundle with batteries included: check out as ~/.emacs.d
Homepage: http://www.sanityinc.com/
Clone URL: git://github.com/purcell/emacs.d.git
purcell (author)
Sun Nov 08 01:28:35 -0800 2009
commit  2911fe29ab9fdbad192aee7caf48d75f98ca851d
tree    fb797f2e790d6fa4b51feedffb593c182a04b9b6
parent  ffd4ae89988e8638c7fd4fb8ff1ae0c60a9e464d
emacs.d / init-ecb.el
100644 26 lines (21 sloc) 1.029 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
;; Change default location of semantic.cache files
(setq semanticdb-default-save-directory (expand-file-name "~/.semanticdb"))
(unless (file-directory-p semanticdb-default-save-directory)
  (make-directory semanticdb-default-save-directory))
 
;; Force shadowing of the Emacs-bundled speedbar (cedet's "inversion" package tries
;; and fails to handle this)
(setq load-path (cons (concat (directory-of-library "cedet") "/../speedbar/") load-path))
(require 'cedet)
(require 'ecb-autoloads)
 
;; Flymake confuses ecb's idea of which buffers are compilation buffers
(defun comint-but-not-flymake-p (buf)
  (and (comint-check-proc buf)
       (not (buffer-local-value 'flymake-mode-line buf))))
(setq ecb-compilation-predicates '(comint-but-not-flymake-p))
 
(eval-after-load "ecb"
  `(setq ecb-compilation-buffer-names
(append ecb-compilation-buffer-names
'(("\\(development\\|test\\|production\\).log" . t)
("\\*R" . t)))))
 
(add-hook 'ecb-activate-hook
          (lambda () (setq global-semantic-idle-scheduler-mode nil)))