Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

another idea to fix the nrepl-buffer-ns problem #148

Closed
wants to merge 1 commit into from

1 participant

@jpalmucci

This one is less intrusive. Not sure what you are planning for 1.6, but this is a simple option.

@jpalmucci jpalmucci closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 14, 2012
  1. @jpalmucci

    set nrepl-buffer-ns on load so C-c C-n isn't required before evaluati…

    jpalmucci authored
    …on and meta-. work correctly.
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 nrepl.el
View
4 nrepl.el
@@ -1279,7 +1279,8 @@ This function is meant to be used in hooks to avoid lambda
nrepl-interaction-mode-map
(make-local-variable 'completion-at-point-functions)
(add-to-list 'completion-at-point-functions
- 'nrepl-complete-at-point))
+ 'nrepl-complete-at-point)
+ (setq nrepl-buffer-ns (nrepl-find-ns)))
(defun nrepl-mode ()
"Major mode for nREPL interactions."
@@ -1300,6 +1301,7 @@ This function is meant to be used in hooks to avoid lambda
(nrepl-history-load nrepl-history-file)
(add-hook 'kill-buffer-hook 'nrepl-history-just-save t t)
(add-hook 'kill-emacs-hook 'nrepl-history-just-save))
+ (setq nrepl-buffer-ns (nrepl-find-ns))
(run-mode-hooks 'nrepl-mode-hook))
;;; communication
Something went wrong with that request. Please try again.