Skip to content

Instantly share code, notes, and snippets.

@maruks
Created October 18, 2013 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maruks/7040970 to your computer and use it in GitHub Desktop.
Save maruks/7040970 to your computer and use it in GitHub Desktop.
displays value of lest sexp in a popup
(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