aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2009-09-06 17:46:29 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2009-09-06 17:46:29 +0000
commitfd1bdb988d0e128fc9e60a8a95c03826aa81769c (patch)
tree0b1f2cd90678f63bc1b9fb2900058ca27234f07f /lib
parente35bcf265454cc64f9416686f554defa77ab89f0 (diff)
Add after save hook and convenient key binding to compile on save
Diffstat (limited to 'lib')
-rw-r--r--lib/pg-dev.el6
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