From b2b9b01a9dcc7d95fc6cb5d99f5543c6b74af411 Mon Sep 17 00:00:00 2001
From: Daanturo <daanturo@gmail.com>
Date: Wed, 26 Jan 2022 02:08:39 +0700
Subject: [PATCH] lispy.el (lispy-backtick): Use self-insert-command

Unlike insert, self-insert-command allows electric-pair and smartparens
to auto-close the pair ("`" and "'").
---
 lispy.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lispy.el b/lispy.el
index 29b9c4b0..658406ba 100644
--- a/lispy.el
+++ b/lispy.el
@@ -2025,13 +2025,13 @@ For Clojure modes, toggle #_ sexp comment."
           (lispy-different)))
     (self-insert-command arg)))
 
-(defun lispy-backtick ()
-  "Insert `."
-  (interactive)
+(defun lispy-backtick (&optional arg)
+  "Insert ` ARG times."
+  (interactive "p")
   (if (region-active-p)
       (lispy--surround-region "`" "'")
     (lispy--space-unless "\\s-\\|\\s(\\|[:?`']\\|\\\\")
-    (insert "`")))
+    (self-insert-command arg)))
 
 (defun lispy-tilde (arg)
   "Insert ~ ARG times.