diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-24 23:30:46 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-24 23:57:10 +0200 |
commit | f23c120ec572fe7c44757d8ec8d8a7c53463dc32 (patch) | |
tree | 3632561ca18add3500b63ec9672874837e9c340d /emacs | |
parent | ef3ed40bb9662aab91c663e3432a7e42c5f03d5d (diff) | |
download | dotfiles-f23c120ec572fe7c44757d8ec8d8a7c53463dc32.tar.gz dotfiles-f23c120ec572fe7c44757d8ec8d8a7c53463dc32.tar.xz dotfiles-f23c120ec572fe7c44757d8ec8d8a7c53463dc32.zip |
emacs.d/lisp: added self-compile-mode
self written script for byte-compiling lisp files on save
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -398,15 +398,8 @@ (save-excursion (flyspell-buffer))) (ad-activate 'ispell-pdict-save t) -; byte-compile .emacs -(defun autocompile nil - "compile itself if ~/.emacs" - (interactive) - (require 'bytecomp) - (if (or (string= (buffer-file-name) (expand-file-name "~/.emacs")) - (string= (buffer-file-name) (expand-file-name "~/.dotfiles/emacs"))) - (byte-compile-file "~/.dotfiles/emacs"))) -(add-hook 'after-save-hook 'autocompile) +;; auto compile files +(require 'self-compile-mode) ; keine Abfrage wenn ein template existiert (setq template-query nil) |