Created
November 24, 2021 15:57
-
-
Save Gavinok/5ba21492b66b6765384cf43d9b836847 to your computer and use it in GitHub Desktop.
A minimal emacs configuration using evil mode and NO 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) | |
;; This can be commented out if you don't want the package repos | |
;; to refresh every time you open emacs | |
(package-refresh-contents) | |
;;; UNDO | |
;; Vim style undo not needed for emacs 28 | |
(unless (package-installed-p 'undo-fu) | |
(package-install 'undo-fu)) | |
;;; Vim Bindings | |
(unless (package-installed-p 'evil) | |
(package-install 'evil)) | |
(define-key global-map (kbd "<escape>") #'keyboard-escape-quit) | |
;; to work properly with evil-collection | |
(setq evil-want-keybinding nil) | |
;; no vim insert bindings | |
(setq evil-undo-system 'undo-fu) | |
(evil-mode 1) | |
;;; Vim Bindings Everywhere else | |
(unless (package-installed-p 'evil-collection) | |
(package-install 'evil-collection)) | |
(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