emacs - How to make jedi:goto-definition open definition in split buffer -
jedi:goto-definition works wonderfully, opens definition in same buffer i'm editing in. looking references me better if opened definition of function in split pane , kept cursor is.
is there simple way of doing this?
you advise jedi:goto-definition emacs splits frame before running jedi:goto-definition, , goes buffer afterwards.
(defadvice jedi:goto-definition (around definition-in-other-window activate) "goto definition in different window." (interactive) ;; remove current frame splits (delete-other-windows) ;; split frame vertically (split-window-right) ;; switch focus window on right (other-window 1) ad-do-it ;; switch window on left (other-window 1))
Comments
Post a Comment