-
-
Save zach-is-my-name/ffead08444ffeec5a032c116ad3cf93a to your computer and use it in GitHub Desktop.
A minimal emacs configuration using evil mode and use-package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; Startup | |
;;; PACKAGE LIST | |
(setq package-archives | |
'(("melpa" . "https://melpa.org/packages/") | |
("elpa" . "https://elpa.gnu.org/packages/"))) | |
;;; BOOTSTRAP USE-PACKAGE | |
(package-initialize) | |
(setq use-package-always-ensure t) | |
(unless (package-installed-p 'use-package) | |
(package-refresh-contents) | |
(package-install 'use-package)) | |
(eval-when-compile (require 'use-package)) | |
;;; UNDO | |
;; Vim style undo not needed for emacs 28 | |
(use-package undo-fu) | |
;;; Vim Bindings | |
(use-package evil | |
:demand t | |
:bind (("<escape>" . keyboard-escape-quit)) | |
:init | |
;; allows for using cgn | |
;; (setq evil-search-module 'evil-search) | |
(setq evil-want-keybinding nil) | |
;; no vim insert bindings | |
(setq evil-undo-system 'undo-fu) | |
:config | |
(evil-mode 1)) | |
;;; Vim Bindings Everywhere else | |
(use-package evil-collection | |
:after evil | |
:config | |
(setq evil-want-integration t) | |
(evil-collection-init)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment