Created
March 16, 2011 21:07
-
-
Save uk-ar/873303 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
(defun popwin:popup-buffer-tail (&rest same-as-popwin:popup-buffer) | |
"Same as `popwin:popup-buffer' except that the buffer will be | |
`recenter'ed at the bottom." | |
(interactive "bPopup buffer:\n") | |
(let ((popup-win (apply 'popwin:popup-buffer same-as-popwin:popup-buffer))) | |
;;(save-excursion | |
(save-selected-window | |
(select-window popup-win) | |
(set-window-point popup-win (point-max)) | |
(recenter -2) | |
;;) | |
) | |
popup-win)) | |
(defadvice ruby-send-region (after ruby-send-region-and-pop(start end)) | |
"Indents after yanking." | |
(popwin:popup-buffer-tail '"*ruby*" :height 10) | |
;;ad-do-return | |
) | |
(ad-activate 'ruby-send-region) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment