File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
### New features
6
6
7
- * [ #460 ] ( https://github.com/clojure-emacs/cider/issues/316 ) Support for cider-nrepl's complete middleware for CLJ/CLJS autocomplete.
7
+ * [ #460 ] ( https://github.com/clojure-emacs/cider/issues/316 ) Support for
8
+ cider-nrepl's complete middleware for CLJ/CLJS autocomplete.
9
+ * [ #469 ] ( https://github.com/clojure-emacs/cider/issues/469 ) Add option
10
+ ` cider-prompt-save-file-on-load ` .
8
11
* New interactive command ` cider-insert-defun-in-repl ` .
9
12
* New interactive command ` cider-insert-ns-form-in-repl ` .
10
13
Original file line number Diff line number Diff line change @@ -211,6 +211,13 @@ Buffer name will look like *cider-repl project-name:port*.
211
211
(setq cider-repl-print-length 100) ; the default is nil, no limit
212
212
```
213
213
214
+ * Prevent <kbd >C-c C-k</kbd > from prompting to save the file corresponding to
215
+ the buffer being loaded, if it's modified:
216
+
217
+ ``` el
218
+ (setq cider-prompt-save-file-on-load nil)
219
+ ```
220
+
214
221
* Change the result prefix for REPL evaluation (by default there's no prefix):
215
222
216
223
``` el
Original file line number Diff line number Diff line change @@ -87,6 +87,9 @@ which will use the default REPL connection."
87
87
:type 'symbol
88
88
:group 'cider )
89
89
90
+ (defcustom cider-prompt-save-file-on-load t
91
+ " Controls whether to prompt to save the file when loading a buffer." )
92
+
90
93
(defface cider-error-highlight-face
91
94
'((((supports :underline (:style wave)))
92
95
(:underline (:style wave :color " red" ) :inherit unspecified))
@@ -1242,7 +1245,8 @@ under point, prompts for a var."
1242
1245
(check-parens )
1243
1246
(unless buffer-file-name
1244
1247
(error " Buffer %s is not associated with a file " (buffer-name )))
1245
- (when (and (buffer-modified-p )
1248
+ (when (and cider-prompt-save-file-on-load
1249
+ (buffer-modified-p )
1246
1250
(y-or-n-p (format " Save file %s ? " (buffer-file-name ))))
1247
1251
(save-buffer ))
1248
1252
(cider-load-file (buffer-file-name )))
You can’t perform that action at this time.
0 commit comments