summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-04-24 23:30:46 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2012-04-24 23:57:10 +0200
commitf23c120ec572fe7c44757d8ec8d8a7c53463dc32 (patch)
tree3632561ca18add3500b63ec9672874837e9c340d /emacs
parentef3ed40bb9662aab91c663e3432a7e42c5f03d5d (diff)
downloaddotfiles-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--emacs11
1 files changed, 2 insertions, 9 deletions
diff --git a/emacs b/emacs
index a0c011b..d205e97 100644
--- a/emacs
+++ b/emacs
@@ -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)