summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2009-04-16 17:39:09 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2009-04-16 17:39:09 +0200
commit90ea8c82366a9215857f40d585f767c77a8cb7ff (patch)
tree25925538d61c4a5d63cfffddc30b31f9e68fafcb /emacs
parent7453bde6d76694fb9490d6c47063ce8e3e4e6800 (diff)
downloaddotfiles-90ea8c82366a9215857f40d585f767c77a8cb7ff.tar.gz
dotfiles-90ea8c82366a9215857f40d585f767c77a8cb7ff.tar.xz
dotfiles-90ea8c82366a9215857f40d585f767c77a8cb7ff.zip
updated emacs config
enabled the templates automatic add template to new files added templates added .emacs.d/lisp to load-path automatic follow symlinks to vc automatic bytecompile .emacs in dotfiles
Diffstat (limited to 'emacs')
-rw-r--r--emacs16
1 files changed, 12 insertions, 4 deletions
diff --git a/emacs b/emacs
index 88c1f1f..b464a33 100644
--- a/emacs
+++ b/emacs
@@ -44,7 +44,7 @@
'(ecb-primary-secondary-mouse-buttons (quote mouse-1--mouse-2))
'(ecb-process-non-semantic-files t)
'(ecb-show-help-format (quote info))
- '(ecb-source-path (quote (("/" "/") ("/home/alex/" "~/") #("/home/alex/chat" 0 15 (help-echo "Mouse-2 toggles maximizing, mouse-3 displays a popup-menu")) ("/home/alex/projects/uni/ti3" "ti3") ("/home/alex/projects/c/antispam" "antispamm") ("/home/alex/projects/c/antispam" "antispam"))))
+ '(ecb-source-path (quote (("/" "/") ("/home/alex/" "~/") #("/home/alex/chat" 0 15 (help-echo "Mouse-2 toggles maximizing, mouse-3 displays a popup-menu")) ("/home/alex/projects/uni/ti3" "ti3") ("/home/alex/projects/c/antispam" "antispamm") ("/home/alex/projects/c/antispam" "antispam") ("/home/alex/projects/todolist" "todolist"))))
'(ecb-stealthy-tasks-delay 0.5)
'(ecb-tag-display-function (quote ((default . ecb--semantic-format-tag-uml-prototype))))
'(ecb-tip-of-the-day nil)
@@ -207,7 +207,10 @@
(set-selection-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
+; load-path anpassen
(setq load-path (cons "/usr/share/maxima/5.9.0/emacs" load-path))
+(setq load-path (append load-path (list "~/.emacs.d/lisp" )))
+
(autoload 'maxima-mode "maxima" "Maxima mode" t)
(autoload 'maxima "maxima" "Maxima interactive" t)
(setq auto-mode-alist (cons '("\.max" . maxima-mode) auto-mode-alist))
@@ -237,6 +240,7 @@
(global-font-lock-mode t t)
(setq font-lock-maximum-decoration t)
(follow-mode t)
+(setq vc-follow-symlinks t)
(require 'uniquify)
(setq uniquify-buffer-name-style 'reverse)
@@ -293,13 +297,17 @@
"compile itself if ~/.emacs"
(interactive)
(require 'bytecomp)
- (if (string= (buffer-file-name) (expand-file-name (concat default-directory ".emacs")))
- (byte-compile-file (buffer-file-name))))
+ (if (or (string= (buffer-file-name) (expand-file-name "~/.emacs"))
+ (string= (buffer-file-name) (expand-file-name "~/.dotfiles/emacs")))
+ (byte-compile-file "~/.emacs")))
(add-hook 'after-save-hook 'autocompile)
+; keine Abfrage wenn ein template existiert
+(setq template-query nil)
+(require 'template-simple)
+
; servermode (to edit files with emacsclient)
(server-start)
; emacs code browser
(ecb-activate)
-