-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.el
More file actions
71 lines (56 loc) · 1.88 KB
/
Copy pathinit.el
File metadata and controls
71 lines (56 loc) · 1.88 KB
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
67
68
69
70
;; inhibit splash screen
(setq inhibit-splash-screen t)
;; change the font
;; (set-face-attribute 'default nil :font "Cousine-14")
;; maximize screen at startup
(add-hook 'window-setup-hook 'toggle-frame-maximized t)
;; disable menu on startup
(menu-bar-mode -1)
;; disable toolbar on startup
(tool-bar-mode -1)
;; disable scrollbar on startup
(scroll-bar-mode -1)
;; Set transient mark mode
(transient-mark-mode 1)
;; Enable ORG mode
(require 'org)
;; set GNU style indenting for C
(setq c-default-style "linux"
c-basic-offset 2)
;; turn on electric pair mode
(electric-pair-mode 1)
;; set transparency
(add-to-list 'default-frame-alist '(alpha-background . 99))
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(add-to-list 'package-archives
'("gnu" . "http://elpa.gnu.org/packages/") t)
(package-initialize)
(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.
'(custom-safe-themes
'("5a0ddbd75929d24f5ef34944d78789c6c3421aa943c15218bac791c199fc897d"
default))
'(package-selected-packages
'(magit yasnippet dracula-theme gruvbox-theme material-theme
atom-one-dark-theme prettier markdown-mode)))
(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.
)
;; Load theme
(load-theme 'gruvbox-dark-medium t)
;;
;; Optional: load other packages before eglot to enable eglot integrations.
(require 'yasnippet)
(require 'eglot)
;; misc
;; absolute/relative linenumbers
(setq display-line-numbers-type 'absolute)
(global-display-line-numbers-mode)