Skip to content

Instantly share code, notes, and snippets.

@dotemacs
Created June 12, 2010 18:30
Show Gist options
  • Save dotemacs/435966 to your computer and use it in GitHub Desktop.
Save dotemacs/435966 to your computer and use it in GitHub Desktop.
;; 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