From f4f88ea6ac2affdac4246b9e6a6a4ec3fdeb92f5 Mon Sep 17 00:00:00 2001 From: Ashton Wiersdorf Date: Fri, 8 Sep 2023 09:39:55 -0600 Subject: Rename mixin → extra MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extras/vim-like.el | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 extras/vim-like.el (limited to 'extras/vim-like.el') diff --git a/extras/vim-like.el b/extras/vim-like.el new file mode 100644 index 0000000..9506dc1 --- /dev/null +++ b/extras/vim-like.el @@ -0,0 +1,32 @@ +;;; Emacs Bedrock +;;; +;;; Extra config: Vim emulation + +;;; Usage: Append or require this file from init.el for bindings in Emacs. + +;;; Contents: +;;; +;;; - Core Packages + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;; +;;; Core Packages +;;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +;; Evil: vi emulation +(use-package evil + :ensure t + + :init + (setq evil-respect-visual-line-mode t) + (setq evil-undo-system 'undo-redo) + + ;; Enable this if you want C-u to scroll up, more like pure Vim + ;(setq evil-want-C-u-scroll t) + + :config + (evil-mode) + + ;; Configuring initial major mode for some modes + (evil-set-initial-state 'vterm-mode 'emacs)) -- cgit v1.2.3