@@ -261,20 +261,26 @@ whichever process buffer you want to use.")
261
261
262
262
(put 'inf-clojure-mode 'mode-class 'special )
263
263
264
- (defcustom inf-clojure-repl-flavor 'clojure
265
- " Symbol to define your REPL flavor.
266
- The default flavor is ' clojure, ' lumo is the other supported
264
+ (defcustom inf-clojure-repl-default- flavor 'clojure
265
+ " Symbol to define your default REPL flavor.
266
+ The default flavor is clojure, lumo is the other supported
267
267
one."
268
- :type 'symbol
269
- :options '(clojure lumo )
268
+ :type '(choice (const :tag " Lumo " lumo)
269
+ (other :tag " Clojure " clojure) )
270
270
:group 'inf-clojure )
271
271
272
+ (defvar-local inf-clojure-repl-flavor inf-clojure-repl-default-flavor
273
+ " Symbol to define your REPL flavor.
274
+ Takes its root binding from inf-clojure-repl-default-flavor but
275
+ can be further customized using either `setq-local` or an entry
276
+ in `.dir-locals.el`." )
277
+
272
278
(defun inf-clojure--flavor-setup ()
273
279
" Setup inf-clojure defcustoms depending on the choose flavor."
274
280
(pcase inf-clojure-repl-flavor
275
- (lumo (progn ( message " [ inf-clojure] will switch to the Lumo flavor" )
276
- (inf- clojure--flavor-lumo-setup)) )
277
- (_ (message " [inf-clojure] will default to the Clojure flavor " ))))
281
+ (lumo (inf-clojure-- flavor-lumo-setup) )
282
+ ( clojure nil )
283
+ (_ (user-error " [inf-clojure] The specified flavor is not supported at the moment. " ))))
278
284
279
285
(define-derived-mode inf-clojure-mode comint-mode " Inferior Clojure"
280
286
" Major mode for interacting with an inferior Clojure process.
0 commit comments