From 33507db9eb7ae410bf9818e83f5c5ab3cc118757 Mon Sep 17 00:00:00 2001 From: Rawley Fowler <75388349+rawleyfowler@users.noreply.github.com> Date: Sat, 28 May 2022 11:09:24 -0600 Subject: [PATCH] Update init.el --- emacs.d/init.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/emacs.d/init.el b/emacs.d/init.el index f6951a3..ac31ac4 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -61,12 +61,18 @@ (setq evil-vsplit-window-right t) (setq evil-split-window-below t) (evil-mode)) + (defun save-and-kill-buffer () ;; Saves and kills a buffer, vim style (interactive) (save-buffer) (kill-buffer)) +(defun kill-buffer () + (interactive) + (kill-buffer)) + (evil-ex-define-cmd "wq" 'save-and-kill-buffer) (evil-ex-define-cmd "q" 'kill-buffer) + (use-package evil-collection :after evil :ensure t