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