forked from portacle/config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
site-start.el
26 lines (22 loc) · 912 Bytes
/
site-start.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
;;;;; DO NOT MODIFY THIS FILE!
;;
;; This file will be replaced whenever Portacle is updated.
;; For emacs configuration changes, please use the dedicated
;; user.el file as explained in the help buffer.
;;
;; Predefine bare minimum path functions
(setq portacle-root (or (getenv "ROOT") (expand-file-name "~/")))
(defun portacle-path (path)
(concat portacle-root path))
;; Set up necessary paths
(setq user-emacs-directory (portacle-path "all/emacsd/"))
(add-to-list 'load-path (portacle-path "all/emacsd/portacle/"))
(cd portacle-root)
;; Set up user init file, since we're launched without one
;; "--no-init-file"
(setq custom-file (portacle-path "config/user.el")
user-init-file custom-file)
;; Load main library
(if (locate-library "portacle")
(load-library "portacle")
(display-warning :warning "Basic Portacle scripts are not present."))