-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
65 lines (49 loc) · 1.74 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
59
60
61
62
63
64
65
;;; init.el --- Everything begin here
;;; Commentary:
;; Author: L42y <[email protected]>
;; URL: https://github.com/L42y/.emacs.d
;; Licence: WTFPL, grab your copy here: http://sam.zoy.org/wtfpl/
;;
;; This file is NOT part of GNU Emacs.
;;; Code:
(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))
(setq straight-repository-branch "develop")
;; (setq straight-recipe-repositories '(org-elpa melpa gnu-elpa-mirror))
;; (require 'package)
;; (setq package-archives
;; '(("gnu" . "https://elpa.gnu.org/packages/")
;; ("org" . "https://orgmode.org/elpa/")
;; ("ublt" . "https://elpa.ubolonton.org/packages/")
;; ("melpa" . "https://melpa.org/packages/")))
;; (package-initialize)
;; (unless (package-installed-p 'use-package)
;; (package-refresh-contents)
;; (package-install 'use-package))
;; (eval-when-compile
;; (require 'use-package))
;; (require 'diminish)
;; (require 'bind-key)
(defvar sweet-home (file-name-directory load-file-name))
(defvar elisp-path (expand-file-name "lisp" sweet-home))
(add-to-list 'load-path elisp-path)
;; (setq custom-file (expand-file-name "custom.el" sweet-home))
;; (load custom-file 'noerror)
(require 'defuns)
(require 'globals)
(require 'orgmodes)
(require 'progmodes)
(require 'textmodes)
(require 'othermodes)
(provide 'init)
;;; init.el ends here