Last active
September 26, 2024 17:47
-
-
Save amirrajan/6598528463e5e7544349a0a777c84443 to your computer and use it in GitHub Desktop.
Emacs minimal init.el for Mac (evil and magit only)
This file contains hidden or 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
| (require 'package) | |
| ;; Emacs has an official repository of packages and a more current | |
| ;; unofficial one. Melpa is the 'unoffical one' (which in this | |
| ;; case translates to more up to date, newer, and by extension, | |
| ;; a bit more volatile). The official repo is called org. This | |
| ;; repo is slow changing and extremely stable (but doesn't have | |
| ;; all the cool/cutting edge packages that are being used). | |
| (push '("melpa" . "http://melpa.org/packages/") package-archives) | |
| (push '("org" . "http://orgmode.org/elpa/") package-archives) | |
| (push '("melpa-stable" . "https://stable.melpa.org/packages/") package-archives) | |
| ;; After the repositories have been set, initialize the package | |
| ;; manager. | |
| (package-initialize) | |
| (unless package-archive-contents (package-refresh-contents)) | |
| (unless (package-installed-p 'use-package) (package-install 'use-package)) | |
| (use-package undo-tree :ensure t) | |
| (use-package evil | |
| :ensure t | |
| :init | |
| :init | |
| (setq evil-want-C-i-jump nil) | |
| (setq evil-want-integration t) | |
| (setq evil-want-keybinding nil) | |
| :config | |
| (require 'undo-tree) | |
| (evil-mode 1) | |
| (evil-set-undo-system 'undo-tree)) | |
| (use-package evil-collection | |
| :ensure t | |
| :after evil | |
| :config | |
| (evil-collection-init)) | |
| (use-package magit :ensure t) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment