From 90ea8c82366a9215857f40d585f767c77a8cb7ff Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 16 Apr 2009 17:39:09 +0200 Subject: 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 --- emacs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'emacs') 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) - -- cgit v1.2.3