diff options
author | David Morgan <djm_uk@protonmail.com> | 2021-12-22 13:01:15 +0000 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2021-12-22 13:01:15 +0000 |
commit | c9282d5d579359ece77585ad0cad2f038957ea11 (patch) | |
tree | 9a63996f5e30b6784cd0b194eb44cd281c4dd1a7 /.emacs.d/lisp/init-paredit.el | |
parent | 1906a446f8cca3968dae3f33b88c211341e3c7d8 (diff) | |
download | dotfiles-c9282d5d579359ece77585ad0cad2f038957ea11.tar.gz |
Fix paredit/sp wrapper function
Diffstat (limited to '.emacs.d/lisp/init-paredit.el')
-rw-r--r-- | .emacs.d/lisp/init-paredit.el | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/.emacs.d/lisp/init-paredit.el b/.emacs.d/lisp/init-paredit.el index 24cd176..0b8c7ce 100644 --- a/.emacs.d/lisp/init-paredit.el +++ b/.emacs.d/lisp/init-paredit.el @@ -65,15 +65,13 @@ Falls back to smartparens in comments." (defmacro define-paredit-smart-sexp (name) `(defun ,(intern (concat "paredit-smart-" name "-sexp")) (&optional argument) - ,(concat "Wrap the following S-expression, from the beginning of the current symbol. -See `paredit-wrap-sexp' for more details. -Falls back to smartparens in comments and strings.") + ,(concat "Splice the list that the point is on by removing its delimiters. +This version falls back to the smartparens version in scenarios that paredit will not handle.") (interactive "P") (if (or (paredit-in-string-p) (paredit-in-comment-p) (paredit-in-char-p)) (,(intern (concat "sp-" name "-sexp"))) - (beginning-of-thing 'symbol) (,(intern (concat "paredit-" name "-sexp")) argument)))) (define-paredit-smart-sexp "splice") |