From 623f1010491b8ca81f96a48fbc2ef356c5a632d6 Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Mon, 16 Jul 2018 11:02:25 +0200 Subject: [PATCH] emacs: Add /* */ pair to evil-surround --- emacs/.emacs.d/init.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index c87d84d..8fb6cae 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -374,7 +374,10 @@ :ensure t :demand t :config - (global-evil-surround-mode t)) + (global-evil-surround-mode t) + (add-hook 'c++-mode-hook (lambda () + (push '(?/ . ("/*" . "*/")) + evil-surround-pairs-alist)))) (use-package projectile :ensure t