diff options
-rw-r--r-- | user/emacs/init.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el index 3a0ad39a..0c0e0be9 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -338,8 +338,9 @@ _p_rev _u_pper _=_: upper/lower _r_esolve :after evil :defer 2 :config (progn - (define-and-bind-quoted-text-object "slash" "/" "\\/" "\\/") - (push '(?\/ . ("/" . "/")) evil-surround-pairs-alist) + (add-hook 'javascript-mode-hook (lambda () + (define-and-bind-quoted-text-object "slash" "/" "\\/" "\\/") + (push '(?\/ . ("/" . "/")) evil-surround-pairs-alist))) (global-evil-surround-mode +1))) |