Fix “malformed function” errors.
Had to wrap them in a `progn` instead of just brackets.
This commit is contained in:
parent
d14683785a
commit
cf0574fd23
|
@ -17,9 +17,10 @@
|
||||||
(use-package web-mode
|
(use-package web-mode
|
||||||
:custom
|
:custom
|
||||||
(web-mode-markup-indent-offset 2) ; Default indentation level.
|
(web-mode-markup-indent-offset 2) ; Default indentation level.
|
||||||
:config ((defun my/html-surround-with-tag (beg end)
|
:config (progn
|
||||||
|
(defun my/html-surround-with-tag (beg end)
|
||||||
"Surround region with HTML tag."
|
"Surround region with HTML tag."
|
||||||
(interactive "*r")
|
(interactive "r")
|
||||||
(if (region-active-p)
|
(if (region-active-p)
|
||||||
(let ((tag (completing-read "Tag: "
|
(let ((tag (completing-read "Tag: "
|
||||||
'("blockquote" "em" "strong"))))
|
'("blockquote" "em" "strong"))))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user