Created
October 18, 2013 12:43
-
-
Save maruks/7040970 to your computer and use it in GitHub Desktop.
displays value of lest sexp in a popup
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 eval-popup (arg) | |
(interactive "P") | |
(let* ((result (nrepl-eval (nrepl-last-expression))) | |
(val (plist-get result :value)) | |
(err (plist-get result :stderr))) | |
(pos-tip-show | |
(or val err)))) | |
(eval-after-load 'clojure-mode | |
'(define-key clojure-mode-map (kbd "\e\ee") 'eval-popup)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment