Update init.el
This commit is contained in:
parent
91900cb0dc
commit
33507db9eb
1 changed files with 6 additions and 0 deletions
|
@ -61,12 +61,18 @@
|
||||||
(setq evil-vsplit-window-right t)
|
(setq evil-vsplit-window-right t)
|
||||||
(setq evil-split-window-below t)
|
(setq evil-split-window-below t)
|
||||||
(evil-mode))
|
(evil-mode))
|
||||||
|
|
||||||
(defun save-and-kill-buffer () ;; Saves and kills a buffer, vim style
|
(defun save-and-kill-buffer () ;; Saves and kills a buffer, vim style
|
||||||
(interactive)
|
(interactive)
|
||||||
(save-buffer)
|
(save-buffer)
|
||||||
(kill-buffer))
|
(kill-buffer))
|
||||||
|
(defun kill-buffer ()
|
||||||
|
(interactive)
|
||||||
|
(kill-buffer))
|
||||||
|
|
||||||
(evil-ex-define-cmd "wq" 'save-and-kill-buffer)
|
(evil-ex-define-cmd "wq" 'save-and-kill-buffer)
|
||||||
(evil-ex-define-cmd "q" 'kill-buffer)
|
(evil-ex-define-cmd "q" 'kill-buffer)
|
||||||
|
|
||||||
(use-package evil-collection
|
(use-package evil-collection
|
||||||
:after evil
|
:after evil
|
||||||
:ensure t
|
:ensure t
|
||||||
|
|
Loading…
Reference in a new issue