blob: 830345c6db96c590932af519d099581168ffbe10 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages nil))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(require 'package)
(setq package-enable-at-startup nil)
(setq package-archives
'(("melpa" . "https://melpa.org/packages/")
("gnu" . "https://elpa.gnu.org/packages/")
("org" . "https://orgmode.org/elpa/")))
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(use-package evil
:ensure t
:config
(evil-mode 1))
(use-package evil-collection
:ensure t
:after evil
:init
(evil-collection-init))
(use-package magit
:ensure t)
(use-package alect-themes
:ensure t
:config
(load-theme 'alect-black t))
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
(setq display-line-numbers-type 'relative)
(global-display-line-numbers-mode 1)
(set-face-attribute 'default nil :font "FiraCode Nerd Font Mono")
(set-face-attribute 'fixed-pitch nil :font "FiraCode Nerd Font Mono")
(add-hook 'c-mode-common-hook
(lambda ()
(c-set-style "linux")
(setq indent-tabs-mode nil)
(setq tab-width 4)))
(setq compilation-scroll-output t)
|