summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emacs/semantic/files/60semantic-gentoo.el')
-rw-r--r--app-emacs/semantic/files/60semantic-gentoo.el25
1 files changed, 24 insertions, 1 deletions
diff --git a/app-emacs/semantic/files/60semantic-gentoo.el b/app-emacs/semantic/files/60semantic-gentoo.el
index 6c069aaed11c..3a7bf744162f 100644
--- a/app-emacs/semantic/files/60semantic-gentoo.el
+++ b/app-emacs/semantic/files/60semantic-gentoo.el
@@ -3,5 +3,28 @@
(setq load-path (cons "@SITELISP@" load-path))
(require 'semantic-util)
-(setq semantic-load-turn-everything-on t)
+
+;; 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"))))