Update evil :wq and :q
This commit is contained in:
parent
31e6909cf1
commit
91900cb0dc
1 changed files with 7 additions and 0 deletions
|
@ -61,6 +61,12 @@
|
||||||
(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
|
||||||
|
(interactive)
|
||||||
|
(save-buffer)
|
||||||
|
(kill-buffer))
|
||||||
|
(evil-ex-define-cmd "wq" 'save-and-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
|
||||||
|
@ -208,6 +214,7 @@
|
||||||
:mode ("\\.md\\'" . markdown-mode)
|
:mode ("\\.md\\'" . markdown-mode)
|
||||||
:hook (markdown-mode . auto-fill-mode))
|
:hook (markdown-mode . auto-fill-mode))
|
||||||
|
|
||||||
|
(use-package dart-mode)
|
||||||
(use-package json-mode)
|
(use-package json-mode)
|
||||||
(use-package vimrc-mode)
|
(use-package vimrc-mode)
|
||||||
(use-package yaml-mode)
|
(use-package yaml-mode)
|
||||||
|
|
Loading…
Reference in a new issue