summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-05-04 12:49:41 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2012-05-04 12:49:41 +0200
commitf5e44369ed8239a08873067ddb494ad931ad29b4 (patch)
tree20fbac841a24ff9a5d735e17ddb1bd3c44d27800 /emacs
parent01b27340302d76b4507539be7a36ae312e64d521 (diff)
downloaddotfiles-f5e44369ed8239a08873067ddb494ad931ad29b4.tar.gz
dotfiles-f5e44369ed8239a08873067ddb494ad931ad29b4.tar.xz
dotfiles-f5e44369ed8239a08873067ddb494ad931ad29b4.zip
emacs: use template-mode instead of template-simple
Diffstat (limited to 'emacs')
-rw-r--r--emacs6
1 files changed, 4 insertions, 2 deletions
diff --git a/emacs b/emacs
index 056d6dc..96b9883 100644
--- a/emacs
+++ b/emacs
@@ -183,8 +183,10 @@ If this is set during find-file, flyspell mode gets enabled automaticaly.")
(require 'self-compile-mode)
;; keine Abfrage wenn ein template existiert
-(setq template-query nil)
-(require 'template-simple nil 'noerror)
+(when (require 'template nil 'noerror)
+ (add-to-list 'template-find-file-commands 'ido-exit-minibuffer)
+ (setq template-auto-insert t)
+ (template-initialize))
;; remember last position in file
(setq save-place-file "~/.emacs.d/saveplace")