diff options
| author | David Aspinall | 2009-09-06 17:46:29 +0000 |
|---|---|---|
| committer | David Aspinall | 2009-09-06 17:46:29 +0000 |
| commit | fd1bdb988d0e128fc9e60a8a95c03826aa81769c (patch) | |
| tree | 0b1f2cd90678f63bc1b9fb2900058ca27234f07f /lib/pg-dev.el | |
| parent | e35bcf265454cc64f9416686f554defa77ab89f0 (diff) | |
Add after save hook and convenient key binding to compile on save
Diffstat (limited to 'lib/pg-dev.el')
| -rw-r--r-- | lib/pg-dev.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pg-dev.el b/lib/pg-dev.el index 69be4c40..33879230 100644 --- a/lib/pg-dev.el +++ b/lib/pg-dev.el @@ -27,8 +27,12 @@ (turn-on-eldoc-mode) (flyspell-prog-mode) (customize-set-variable 'whitespace-action '(cleanup)) + (define-key emacs-lisp-mode-map [(control c)(control c)] + 'emacs-lisp-byte-compile-and-load) (add-hook 'write-file-functions - 'whitespace-write-file-hook nil t))) + 'whitespace-write-file-hook nil t) + (add-hook 'after-save-hook + 'emacs-lisp-byte-compile-and-load))) ;; Configure indentation for our macros |
