-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
58 lines (46 loc) · 1.82 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(require 'use-package)
(straight-use-package 'elhome)
(require 'elhome)
(straight-use-package 'org)
(straight-use-package 'python-mode)
(require 'python-mode)
(straight-use-package 'hook-helpers)
(use-package hook-helpers)
(straight-use-package 'diminish)
(require 'diminish) ;; if you use :diminish
(require 'bind-key) ;; if you use any :bind variant
(setq inhibit-startup-screen t)
(defvar package--builtin-versions
;; Mostly populated by loaddefs.el via autoload-builtin-package-versions.
(purecopy `((emacs . ,(version-to-list emacs-version))))
"Alist giving the version of each versioned builtin package.
I.e. each element of the list is of the form (NAME . VERSION) where
NAME is the package name as a symbol, and VERSION is its version
as a list.")
(straight-use-package 'elhome)
(require 'elhome)
(elhome-init)
(let ((secrets-file (locate-user-emacs-file "secrets.el" ".emacs.secrets.el")))
(when (file-exists-p secrets-file)
(load secrets-file)))
(put 'set-goal-column 'disabled nil)
(put 'narrow-to-region 'disabled nil)
(put 'with-state 'scheme-indent-function 2)
(put 'scroll-left 'disabled nil)
(put 'dired-find-alternate-file 'disabled nil)
;; Efficiency hack on find file.
(remove-hook 'find-file-hooks 'vc-find-file-hook)
(setq-default magit-last-seen-setup-instructions "1.4.0")
;;; init.el ends here