-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.el
40 lines (36 loc) · 1.35 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
;;; package -- Summary
;;; Commentary:
;;; Lisp modules goes here -- load some buffers
;;; Code:
;;; Set up package
;; always work with real files, not sym links
(setq vc-follow-symlinks t)
(setq native-comp-async-report-warnings-errors nil)
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 6))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'use-package)
(require 'use-package)
;;(setq use-package-verbose t)
;;(setq use-package-always-ensure t)
(setq straight-use-package-by-default t)
;; common configuration
(org-babel-load-file (expand-file-name "~/.emacs.d/config.org"))
;; load host specific settings, for example host specific proxy settings
(if (file-exists-p "~/.emacs.d/host_config.org")
(org-babel-load-file (expand-file-name "~/.emacs.d/host_config.org")))
;; autogenereated configuration (e.g. by use-package)
(if (file-exists-p custom-file)
(load custom-file))
(put 'narrow-to-region 'disabled nil)
(provide 'init)
;;; init.el ends here