Skip to content

Commit

Permalink
Speed up threading fns by turning off blink delay
Browse files Browse the repository at this point in the history
The `delete-pair` function in lisp.el will intentionally wait to show a blink. There's no need for that when running `clojure-thread`.
  • Loading branch information
magnars committed Feb 2, 2022
1 parent e311868 commit 328fb6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clojure-mode.el
Expand Up @@ -2311,7 +2311,8 @@ With universal argument \\[universal-argument], fully unwind thread."
(defun clojure--remove-superfluous-parens ()
"Remove extra parens from a form."
(when (looking-at "([^ )]+)")
(delete-pair)))
(let ((delete-pair-blink-delay 0))
(delete-pair))))

(defun clojure--thread-first ()
"Thread a nested sexp using ->."
Expand Down

0 comments on commit 328fb6c

Please sign in to comment.