Skip to content

Commit

Permalink
Merge branch 'extra-eldoc-commands' of https://github.com/metajack/nr…
Browse files Browse the repository at this point in the history
…epl.el into metajack-extra-eldoc-commands
  • Loading branch information
kingtim committed Aug 26, 2012
2 parents 0e9b8b0 + 64b5e86 commit 3f0bd6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nrepl.el
Expand Up @@ -141,6 +141,9 @@ joined together.")
(defvar nrepl-err-handler 'nrepl-default-err-handler
"Evaluation error handler")

(defvar nrepl-extra-eldoc-commands '("nrepl-complete" "yas/expand")
"Extra commands to be added to eldoc's safe commands list.")

(defcustom nrepl-popup-stacktraces t
"Non-nil means pop-up error stacktraces.
Nil means do not, useful when in repl"
Expand Down Expand Up @@ -380,6 +383,7 @@ joined together.")
(defun nrepl-eldoc-enable-in-current-buffer ()
(make-local-variable 'eldoc-documentation-function)
(setq eldoc-documentation-function 'nrepl-eldoc)
(apply 'eldoc-add-command nrepl-extra-eldoc-commands)
(turn-on-eldoc-mode))

;;; Response handlers
Expand Down

0 comments on commit 3f0bd6e

Please sign in to comment.