Skip to content

Instantly share code, notes, and snippets.

@uk-ar
Created March 16, 2011 21:07
Show Gist options
  • Save uk-ar/873303 to your computer and use it in GitHub Desktop.
Save uk-ar/873303 to your computer and use it in GitHub Desktop.
(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