Skip to content

Instantly share code, notes, and snippets.

@Gavinok
Created November 24, 2021 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gavinok/5ba21492b66b6765384cf43d9b836847 to your computer and use it in GitHub Desktop.
Save Gavinok/5ba21492b66b6765384cf43d9b836847 to your computer and use it in GitHub Desktop.
A minimal emacs configuration using evil mode and NO use-package
;;; 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