summaryrefslogtreecommitdiff
blob: 199491572c08faa20e3d483158f3b945278f5cd8 (plain)
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
27
28
29
30
;;; semantic site-lisp configuration

(add-to-list 'load-path "@SITELISP@")
(require 'semantic-util)

;; To determine what should be done here every semantic release, check
;; semantic-load.el.  Here we replicate the (when ... sexp twoards the
;; end of the source.

;; We turn on everything except foor `global-semantic-stickyfunc-mode'
;; as it seems to be a source of consternation for new and experienced
;; users alike.

(setq semantic-load-turn-everything-on nil
      semantic-load-turn-useful-things-on nil)
(require 'semantic-load)

(global-semantic-show-dirty-mode 1)
(global-senator-minor-mode 1)
(global-semantic-show-unmatched-syntax-mode 1)
(global-semantic-auto-parse-mode 1)
(global-semanticdb-minor-mode 1)
(global-semantic-summary-mode 1)
;; (global-semantic-stickyfunc-mode 1)

(when (and (eq window-system 'x)
	   (locate-library "imenu"))
  (add-hook 'semantic-init-hooks (lambda ()
				   (imenu-add-to-menubar "TOKENS"))))