Created
June 12, 2010 18:30
-
-
Save dotemacs/435966 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; my improvement upon http://gist.github.com/412956 | |
;; tried forking that gist and adding my changes, but the markup kept breaking | |
;; tweaked it so it only loads the settings for rinari mode | |
(add-hook 'rinari-minor-mode-hook | |
"Rinari mode tweaks" | |
(defun my-rinari-hook() | |
(defun restart-passenger () | |
"Restart passenger using the current rinari root" | |
(interactive) | |
(shell-command (concat "touch " (rinari-root) "tmp/restart.txt")) | |
(message "Passenger restarted")) | |
(define-key rinari-minor-mode-map "\C-c\'p" 'restart-passenger))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment