tangle with :
[emacs.git] / .emacs.d / config / linws03.cms.fra.dlh.de.org
1 #+STARTUP: align fold nodlcheck hidestars oddeven lognotestate
2 #+TITLE: linws03.cms.fra.dlh.de.org - Ganneffs configuration, host specific file for linws03
3 #+DATE: %Y-%m-%d
4 #+SETUPFILE: ~/.emacs.d/elisp/org-templates/level-0.org
5
6 * Machine specific config
7 ** cedet, jdee
8 Collection of Emacs Development Environment Tools, see [[http://cedet.sourceforge.net/setup.shtml][CEDET]]
9
10 #+BEGIN_SRC emacs-lisp-off :tangle no
11 ;(load-file "~/.emacs.d/elisp/cedet/common/cedet.el")
12 (add-to-list 'load-path "~/.emacs.d/elisp/cedet/common/")
13 (require 'cedet)
14 ;(global-ede-mode 1) ; Enable the Project management system
15
16 (require 'semantic-load)
17 (require 'senator)
18 (require 'semantic-sb)
19 (require 'semantic-ia)
20 (require 'semantic-wisent)
21 ;(require 'semantic/wisent/java-tags)
22
23 (semantic-load-enable-code-helpers) ; Enable prototype help and smart completion
24 (global-srecode-minor-mode 1) ; Enable template insertion menu
25
26 (setq semantic-default-submodes '(global-semantic-idle-scheduler-mode
27 global-semanticdb-minor-mode
28 global-semantic-idle-summary-mode
29 global-semantic-decoration-mode
30 global-semantic-highlight-func-mode
31 global-semantic-stickyfunc-mode
32 global-semantic-idle-tag-highlight-mode
33 global-semantic-mru-bookmark-mode))
34 (setq semantic-load-turn-everything-on t)
35 ;; ;(semantic-mode 1)
36
37 (add-hook 'semantic-init-hooks 'senator-minor-mode)
38
39 ;; Use the full Java 1.5 grammer to parse Java
40 (autoload 'wisent-java-default-setup "wisent" "Hook run to setup Semantic in 'java-mode'." nil nil)
41
42 (setq jde-auto-parse-enable nil)
43 (setq jde-enable-senator nil)
44 (load "jde-autoload")
45
46 (setq defer-loading-jde t)
47
48 (setq jde-check-version-flag nil)
49 (define-obsolete-function-alias 'make-local-hook 'ignore "21.1")
50 (unless (fboundp 'semantic-format-prototype-tag-java-mode)
51 (defalias 'semantic-format-prototype-tag-java-mode 'semantic-format-tag-prototype-java-mode))
52 (autoload 'jde-mode "jde" "JDE mode." t)
53 (setq auto-mode-alist
54 (append '(("\\.java\\'" . jde-mode)) auto-mode-alist))
55 (setq jde-jdk `("1.6"))
56
57 ;; Location of you emacs directory
58 (setq my-emacs-dir (concat (getenv "HOME") "/.emacs.d/tmp/emacs-jde"))
59
60 ;; save all the semantic.cache files to one place
61 (when (locate-library "semantic")
62 (let ((semcach (concat my-emacs-dir "/semantic-cache")))
63 (unless (file-directory-p semcach)
64 (make-directory semcach))
65 (setq semanticdb-default-save-directory semcach)))
66 #+END_SRC
67
68 ** org-mode
69 I want some extra templates for org-capture, which I don't need to
70 see at home. (Or want different there).
71 #+BEGIN_SRC emacs-lisp :tangle yes
72 (nconc org-capture-templates
73 '(
74 ("f" "Firewall request" entry (file+headline "~/org/nsb/dlh.org" "Firewall")
75 "* TODO Firewall Request, RT: %?\nAdded: %U\n"
76 :clock-in t :clock-resume t)
77 ("i" "Ticket" entry (file+headline "~/org/nsb/dlh.org" "RT Ticket")
78 "* TODO RT: %a\nAdded: %U\n\n%?\n"
79 :clock-in t :clock-resume t :jump-to-captured t)
80 ("m" "Meeting" entry (file+headline "~/org/nsb/dlh.org" "Meetings")
81 "* TODO %?\nSCHEDULED: %^{Please specify meeting date/time}t\nAdded: %U\n"
82 :clock-in t :clock-resume t :jump-to-captured t)
83 ("a" "HW Migration related" entry (file "~/org/nsb/dlh_hw.org")
84 "* TODO %?\nAdded: %U\n\n \n"
85 :clock-in t :clock-resume t :jump-to-captured t :prepend t)
86 ))
87 #+END_SRC
88
89 ** ecb
90 Emacs Code Browser, see [[http://ecb.sourceforge.net/][ECB - Emacs Code Browser]]
91 #+BEGIN_SRC emacs-lisp :tangle no
92 (load-file "~/.emacs.d/elisp/ecb/ecb.el")
93 (require 'ecb-autoloads)
94 #+END_SRC
95 * Footnotes
96