aboutsummaryrefslogtreecommitdiff
path: root/emacs/init.el
blob: dc3955784a69d06a215746e21bfd7ab57f51be0e (plain)
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
(require 'package)
(add-to-list 'package-archives
             '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)

(unless package-archive-contents
  (package-refresh-contents))

(require 'use-package)
(setq use-package-always-ensure t)

(setq inhibit-startup-message t) 
(menu-bar-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(setq display-line-numbers-type 'relative)
(global-display-line-numbers-mode 1)
(setq-default indent-tabs-mode nil)
(setq ring-bell-function 'ignore)

;; keep customizations out of this file
(setq custom-file
      (make-temp-file "emacs-custom-"))

(use-package evil
  :init
  (setq evil-want-keybinding nil)
  (setq evil-want-C-u-scroll t)
  :config
  (evil-mode 1))

(use-package evil-collection
  :after evil
  :config
  (evil-collection-init))

(use-package vs-dark-theme
  :config
  (load-theme 'vs-dark t))

(use-package apheleia
  :config
  (apheleia-global-mode +1))

(use-package magit
  :bind ("C-x g" . magit-status))