-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathminimal-init.el
49 lines (36 loc) · 1.08 KB
/
minimal-init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
(setq debug-on-error t)
(add-hook 'after-init-hook
(lambda ()
(setq debug-on-error nil)))
(require 'package)
(setq package-enable-at-startup nil)
(package-initialize)
(setq package-archives '(("org" . "https://orgmode.org/elpa/")
("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")))
(unless package-archive-contents
(package-refresh-contents))
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-when-compile
(require 'use-package))
(setq use-package-always-ensure t)
(setq use-package-always-demand t)
(use-package evil
:init
(setq evil-want-keybinding nil)
:config
(evil-mode 1))
(use-package evil-collection
:config
(evil-collection-init))
(use-package ivy
:config
(ivy-mode 1))
;; macOS modifiers.
(setq mac-command-modifier 'meta)
;; Setting "Option" to nil allows me to type umlauts with "Option+u".
(setq mac-option-modifier nil)
(setq mac-control-modifier 'control)
(setq ns-function-modifier 'hyper)