-
Notifications
You must be signed in to change notification settings - Fork 8
/
init.el
104 lines (84 loc) · 3.51 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
;;; init.el --- Initialization code for emacs
;; Copyright (c) 2015 Gregory J Stein
;; Author: Gregory J Stein <[email protected]>
;; Maintainer: Gregory J Stein <[email protected]>
;; Created: 20 Aug 2015
;; Keywords: configuration
;; Homepage: https://github.com/gjstein/emacs.d
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation; either version 2 of
;; the License, or (at your option) any later version.
;;
;; This program is distributed in the hope that it will be
;; useful, but WITHOUT ANY WARRANTY; without even the implied
;; warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
;; PURPOSE. See the GNU General Public License for more details.
;;; Commentary:
;; Calls my Emacs configuration files after installing use-package, which is
;; necessary for operation. See also:
;; http://www.cachestocaches.com/2015/8/getting-started-use-package/
;;
;; Code inspired by:
;; http://stackoverflow.com/a/10093312/3672986
;; http://www.lunaryorn.com/2015/01/06/my-emacs-configuration-with-use-package.html
;; https://github.com/jwiegley/use-package
;;; Code:
;; User Info
(setq user-full-name "Gregory Stein")
(setq user-mail-address "[email protected]")
;; Install use-package if necessary
(require 'package)
(setq package-enable-at-startup nil)
(setq package-archives (append package-archives
'(("melpa" . "http://melpa.org/packages/")
("gnu" . "http://elpa.gnu.org/packages/")
("elpy" . "http://jorgenschaefer.github.io/packages/"))))
(package-initialize)
;; Bootstrap `use-package'
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(use-package diminish :ensure t)
;; Enable use-package
(eval-when-compile
(require 'use-package))
(require 'diminish) ;; if you use :diminish
(require 'bind-key) ;; if you use any :bind variant
;; Increase garbage collection threshold to 500 MB to ease startup
;; (Don't do this for now! It was causing my agenda mode to crawl)
;; (setq gc-cons-threshold (* 500 1024 1024))
;; Set the path variable
(use-package exec-path-from-shell
:ensure t
:config (exec-path-from-shell-initialize))
(when (memq window-system '(mac ns x)) (exec-path-from-shell-initialize))
;; === Face Customization ===
(load-file "~/.emacs.d/config/init-10-face.el")
;; === Interface ===
(load-file "~/.emacs.d/config/init-20-nav-interface.el")
;; === Document Editing ===
(load-file "~/.emacs.d/config/init-30-doc-gen.el")
(load-file "~/.emacs.d/config/init-31-doc-org.el")
;; ==accessability ==
;; (require 'cl)
;; (setq load-path (cons "~/projects/emacspeak/lisp" load-path))
;; (setq emacspeak-directory "~/projects/emacspeak")
;; (setq dtk-program "mac")
;; (require 'emacspeak-setup)
;; ; (setq mac-default-voice-string "betty")
;; (require 'mac-voices)
;; (emacspeak-tts-startup-hook)
;; (dtk-set-rate 450 t)
;; (setq emacspeak-speak-maximum-line-length 10000)
;; === Programming & Coding Functions ===
(load-file "~/.emacs.d/config/init-40-coding-gen.el")
(load-file "~/.emacs.d/config/init-41-coding-c-cpp.el")
(load-file "~/.emacs.d/config/init-42-coding-web.el")
(load-file "~/.emacs.d/config/init-43-coding-matlab.el")
(load-file "~/.emacs.d/config/init-44-coding-python.el")
(load-file "~/.emacs.d/config/init-45-coding-ROS.el")
(load-file "~/.emacs.d/config/init-46-coding-rust.el")
;; === misc ===
(load-file "~/.emacs.d/config/init-70-misc-ledger.el")
;;; init.el ends here