@@ -1012,6 +1012,13 @@ text property `cider-old-input'."
1012
1012
(message " Content-type support in REPL %s . "
1013
1013
(if cider-repl-use-content-types " enabled" " disabled" )))
1014
1014
1015
+ (defun cider-repl-toggle-clojure-font-lock ()
1016
+ " Toggle pretty-printing in the REPL."
1017
+ (interactive )
1018
+ (setq cider-repl-use-clojure-font-lock (not cider-repl-use-clojure-font-lock))
1019
+ (message " Clojure font-locking in REPL %s . "
1020
+ (if cider-repl-use-clojure-font-lock " enabled" " disabled" )))
1021
+
1015
1022
(defun cider-repl-switch-to-other ()
1016
1023
" Switch between the Clojure and ClojureScript REPLs for the current project."
1017
1024
(interactive )
@@ -1487,6 +1494,7 @@ constructs."
1487
1494
(cider-repl-add-shortcut " clear-help-banner" #'cider-repl-clear-help-banner )
1488
1495
(cider-repl-add-shortcut " ns" #'cider-repl-set-ns )
1489
1496
(cider-repl-add-shortcut " toggle-pretty" #'cider-repl-toggle-pretty-printing )
1497
+ (cider-repl-add-shortcut " toggle-font-lock" #'cider-repl-toggle-clojure-font-lock )
1490
1498
(cider-repl-add-shortcut " browse-ns" (lambda () (interactive ) (cider-browse-ns (cider-current-ns))))
1491
1499
(cider-repl-add-shortcut " classpath" #'cider-classpath )
1492
1500
(cider-repl-add-shortcut " history" #'cider-repl-history )
@@ -1656,6 +1664,7 @@ constructs."
1656
1664
" --"
1657
1665
[" Set REPL ns" cider-repl-set-ns]
1658
1666
[" Toggle pretty printing" cider-repl-toggle-pretty-printing]
1667
+ [" Toggle Clojure font-lock" cider-repl-toggle-clojure-font-lock]
1659
1668
[" Require REPL utils" cider-repl-require-repl-utils]
1660
1669
" --"
1661
1670
[" Browse classpath" cider-classpath]
0 commit comments