all repos — nixfiles @ c1cdde26628ad1ded165b48dbdd9db7390b5fe0b

System and user configuration, managed by nix and home-manager

Emacs: add pair for elisp docstring `+' pairing
Alan Pearce alan@alanpearce.eu
Thu, 28 Jan 2021 15:50:45 +0100
commit

c1cdde26628ad1ded165b48dbdd9db7390b5fe0b

parent

394c97ecffbd5907619c6fd4c4b9ac8a62ba2288

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -341,6 +341,8 @@ :config (progn             (add-hook 'javascript-mode-hook (lambda ()
                                               (define-and-bind-quoted-text-object "slash" "/" "\\/" "\\/")
                                               (push '(?\/ . ("/" . "/")) evil-surround-pairs-alist)))
+            (add-hook 'emacs-lisp-mode-hook (lambda ()
+                                              (push '(?` . ("`" . "'")) evil-surround-pairs-alist)))
             (global-evil-surround-mode +1)))