-
Notifications
You must be signed in to change notification settings - Fork 0
/
init2.el
executable file
·64 lines (44 loc) · 1.86 KB
/
init2.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
;;; init.el --- Personal configuration -*- coding: utf-8; lexical-binding: t -*-
;;; Commentary:
;;; Code:
;;----------------------------------------------;;
;; Setup ---------------------------------------;;
;;----------------------------------------------;;
(setq debug-on-error t)
(setq load-prefer-newer t)
;; ^ never accidentally `load' outdated (byte-compiled) files.
;;----------------------------------------------;;
(progn
(package-initialize)
(setq package-enable-at-startup nil))
;; ^ `package'.el
;;----------------------------------------------;;
;;(setq debug-on-error t);;TODO environment-variable
;;----------------------------------------------;;
;;(when (boundp 'user-init-file) (find-file user-init-file))
;; ^ for Debugging
;;----------------------------------------------;;
;; Configuration -------------------------------;;
;;----------------------------------------------;;
(let* ((EmacsDirectory (or user-emacs-directory
"~/.emacs.d/"))
(SbooDirectory (file-name-as-directory (concat EmacsDirectory
"sboo/")))
(SbooCustom (file-truename (concat SbooDirectory
"sboo-custom.el")))
(SbooFile (file-truename (concat SbooDirectory
"sboo-init.el")))) ;;TODO EnvironmentVars
(progn
(setq custom-file SbooCustom) ; redirect custom file early.
(with-demoted-errors "[Warning] %s" (find-file SbooFile))
(load SbooFile nil nil t t)))
;;----------------------------------------------;;
;; Teardown ------------------------------------;;
;;----------------------------------------------;;
(setq debug-on-error nil)
;;; init.el ends here
;;----------------------------------------------;;
;; Customization -------------------------------;;
;;----------------------------------------------;;
(put 'scroll-left 'disabled nil)
(put 'dired-find-alternate-file 'disabled nil)