Skip to content

Instantly share code, notes, and snippets.

@scgilardi
Created May 10, 2013 16:04
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 scgilardi/5555393 to your computer and use it in GitHub Desktop.
Save scgilardi/5555393 to your computer and use it in GitHub Desktop.
(defun use-project-relative-nrepl-history-file ()
(setq nrepl-history-file
(concat
(locate-dominating-file (nrepl-current-dir) "project.clj")
".nrepl-history")))
(add-hook 'nrepl-interaction-mode-hook 'use-project-relative-nrepl-history-file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment