Browse files

Now that we have extra make options, C-c - m to run make with'em.

  • Loading branch information...
1 parent 952d7a3 commit 9d72159a70b039f34b03210aa6a562afd8f62490 @dimitri committed Dec 5, 2012
Showing with 10 additions and 2 deletions.
  1. +2 −1 README.md
  2. +8 −1 pgdevenv.el
View
3 README.md
@@ -30,7 +30,8 @@ Extra shortcuts available from the special shell:
C-c - S pgdev-insert-pgctl-stop
C-c - r pgdev-install-and-restart
C-c - R pgdev-reinitdb
- C-c - m pgdev-maintainer-clean-rebuild
+ C-c - m pgdev-make
+ C-c - M pgdev-maintainer-clean-rebuild
C-c - d pgdev-debug-this-psql
C-c - D pgdev-debug
View
9 pgdevenv.el
@@ -173,7 +173,8 @@
(define-key pgdev-map (kbd "D") 'pgdev-debug)
(define-key pgdev-map (kbd "d") 'pgdev-debug-this-psql)
(define-key pgdev-map (kbd "f") 'pgdev-edit-config)
- (define-key pgdev-map (kbd "m") 'pgdev-maintainer-clean-rebuild)
+ (define-key pgdev-map (kbd "m") 'pgdev-make)
+ (define-key pgdev-map (kbd "M") 'pgdev-maintainer-clean-rebuild)
;; make local buffer variables to ease coding the keymap entries
(let ((pgdev-current-prefix cwd)
@@ -245,6 +246,12 @@
(comint-send-input nil t))
;;;###autoload
+(defun pgdev-make ()
+ "Execute make with `pgdev-make-extra-options'"
+ (interactive)
+ (pgdev-insert-send-input "make %s" pgdev-make-extra-options))
+
+;;;###autoload
(defun pgdev-reinitdb ()
"Execute rm -rf $PGDATA && initdb"
(interactive)

0 comments on commit 9d72159

Please sign in to comment.