fix(emacs): Don't add-hook a lambda
This commit is contained in:
@@ -1,9 +1,11 @@
|
|||||||
;;; -*- lexical-binding: t -*-
|
;;; -*- lexical-binding: t -*-
|
||||||
|
|
||||||
|
(require 'syd/base)
|
||||||
|
|
||||||
(with-eval-after-load 'evil-surround
|
(with-eval-after-load 'evil-surround
|
||||||
;; In Elisp, `' is a much more common pair than ``.
|
;; In Elisp, `' is a much more common pair than ``.
|
||||||
(add-hook 'emacs-lisp-mode-hook
|
(syd-add-hook 'emacs-lisp-mode-hook
|
||||||
(lambda ()
|
(defun syd-elisp-evil-surround-pairs-h ()
|
||||||
(push '(?` . ("`" . "'")) evil-surround-pairs-alist))))
|
(push '(?` . ("`" . "'")) evil-surround-pairs-alist))))
|
||||||
|
|
||||||
(provide 'syd/emacs-lisp)
|
(provide 'syd/emacs-lisp)
|
||||||
|
|||||||
Reference in New Issue
Block a user