forked from friemen/emacsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
44 lines (31 loc) · 1.21 KB
/
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
(require 'package)
(setq-default indent-tabs-mode nil)
(defun require-package (pkg)
"Installs package if it is not already installed"
(when (not (package-installed-p pkg))
(package-install pkg))
(require pkg))
(defun require-packages (pkgs)
(mapc 'require-package pkgs))
;; (setq url-proxy-services '(("http" . "YOUR-HOST:8080")))
(setq package-archives
'(("GNU ELPA" . "https://elpa.gnu.org/packages/")
("MELPA Stable" . "https://stable.melpa.org/packages/")
("MELPA" . "https://melpa.org/packages/"))
package-archive-priorities
'(("MELPA Stable" . 10)
("GNU ELPA" . 5)
("MELPA" . 0)))
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
(server-start)
(add-to-list 'load-path (concat user-emacs-directory "config"))
(require 'all-configs)
(setq custom-file "~/.emacs.d/custom.el")
(load custom-file)
;;(set-frame-parameter (selected-frame) 'alpha '(<active> . <inactive>))
;;(set-frame-parameter (selected-frame) 'alpha <both>)
(set-frame-parameter (selected-frame) 'alpha '(100 . 100))
(add-to-list 'default-frame-alist '(alpha . (100 . 100)))