-
-
Notifications
You must be signed in to change notification settings - Fork 45
Add defcustom inf-clojure-prompt-when-set-ns
#46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0b90c95
to
04f7966
Compare
inf-clojure.el
Outdated
@@ -179,6 +179,12 @@ This should usually be a combination of `inf-clojure-prompt' and | |||
:type 'regexp | |||
:group 'inf-clojure) | |||
|
|||
(defcustom inf-clojure-prompt-when-set-ns t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when -> on
inf-clojure.el
Outdated
@@ -179,6 +179,12 @@ This should usually be a combination of `inf-clojure-prompt' and | |||
:type 'regexp | |||
:group 'inf-clojure) | |||
|
|||
(defcustom inf-clojure-prompt-when-set-ns t | |||
"Controls whether to prompt by default when switching namespace." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"by default" seems redundant here
inf-clojure.el
Outdated
Defaults to the ns of the current buffer." | ||
(interactive (inf-clojure-symprompt "Set ns to" (clojure-find-ns))) | ||
Defaults to the ns of the current buffer, always prompting before | ||
setting, unless `inf-clojure-prompt-when-set-ns` is \"never\" or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure "never" won't work - this is just a tag in the customize UI.
CHANGELOG.md
Outdated
@@ -5,6 +5,7 @@ | |||
### New Features | |||
|
|||
* [#34](https://github.com/clojure-emacs/inf-clojure/pull/34): Add support for socket REPL connections. | |||
* [#46](https://github.com/clojure-emacs/inf-clojure/pull/46): Optinally disable prompt on `inf-clojure-set-ns`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make it possible to disable prompt...
The patch allow the user to disable the request "Set ns: ..." on C-c M-n. The default is to always prompt.
04f7966
to
ddad033
Compare
The patch allow the user to disable the request "Set ns: ..." on C-c
M-n. The default is to always prompt.
Before submitting the PR make sure the following things have been done (and denote this
by checking the relevant checkboxes):
M-x checkdoc
warnings(No need?) -> You've updated the readme (if adding/changing user-visible functionality)