summaryrefslogtreecommitdiff
path: root/emacs.el
blob: 240ca5de08704e85824273c212234ee13b44f1e1 (plain) (blame)
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
;; dotfiles -- emacs.johannst.el
;; author: johannst

(provide 'johannst)

;; fix 'bad request' on package-refresh-contents (should be fixed with emcas 26.3)
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")

;; ELPA & MELPA
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/") t)
(package-initialize)

;; config
(custom-set-variables
 '(font-use-system-font t)
 '(package-selected-packages (quote (spacemacs-theme evil magit rust-mode cargo)))
 '(semantic-mode t)
 '(tool-bar-mode nil)
)

;; theme
(load-theme 'spacemacs-dark t)

;; rust foo
(add-hook 'rust-mode-hook 'cargo-minor-mode)