Fix void-variable string #809

This commit is contained in:
Henrik Lissner 2018-08-16 02:18:44 +02:00
parent 480378d30c
commit 3cddbd1949
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -39,9 +39,10 @@
unless (string-match-p "^[a-z-]" (cdr pair))
collect (cons (car pair)
;; TODO Replace with `string-trim-right' (Emacs 26+)
(if (string-match "\\(?:>\\|]\\|}\\)+\\'" string)
(replace-match "" t t string)
string)))))
(let ((string (cdr pair)))
(if (string-match "\\(?:>\\|]\\|}\\)+\\'" string)
(replace-match "" t t string)
string))))))
(setf (alist-get nil web-mode-engines-auto-pairs) nil))
(map! :map web-mode-map