-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.el
97 lines (75 loc) · 2.73 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
;; Hide splash screen
(setq inhibit-splash-screen t)
;; Setting font
;; http://oscarbonilla.com/2007/12/beautiful-emacs/
(require 'carbon-font)
(fixed-width-set-default-fontset
"-apple-inconsolata-medium-r-normal--14-*-*-*-*-*-iso10646-1")
;; Set Mac Style keys
;; http://www.emacswiki.org/emacs/MacKeyMode
(setq mac-command-modifier 'alt mac-option-modifier 'meta)
(require 'redo)
(require 'mac-key-mode)
(mac-key-mode 1)
;; Have access to comments
(global-set-key "\M-3" "#")
;; Set colour scheme
(require 'color-theme)
(color-theme-initialize)
(color-theme-renegade)
;; Start server
(server-start)
;;; init.el --- Where all the magic begins
;;
;; Part of the Emacs Starter Kit
;;
;; This is the first thing to get loaded.
;;
;; "Emacs outshines all other editing software in approximately the
;; same way that the noonday sun does the stars. It is not just bigger
;; and brighter; it simply makes everything else vanish."
;; -Neal Stephenson, "In the Beginning was the Command Line"
;; Load path etc:
(setq dotfiles-dir (file-name-directory
(or (buffer-file-name) load-file-name)))
(add-to-list 'load-path dotfiles-dir)
(add-to-list 'load-path (concat dotfiles-dir "/elpa-to-submit"))
(add-to-list 'load-path (concat dotfiles-dir "/elpa-to-submit/jabber"))
(setq autoload-file (concat dotfiles-dir "loaddefs.el"))
(setq package-user-dir (concat dotfiles-dir "elpa"))
(setq custom-file (concat dotfiles-dir "custom.el"))
;; These should be loaded on startup rather than autoloaded on demand
;; since they are likely to be used in every session:
(require 'cl)
(require 'saveplace)
(require 'ffap)
(require 'uniquify)
(require 'ansi-color)
(require 'recentf)
;; this must be loaded before ELPA since it bundles its own
;; out-of-date js stuff. TODO: fix it to use ELPA dependencies
(load "elpa-to-submit/nxhtml/autostart")
;; Load up ELPA, the package manager:
(require 'package)
(package-initialize)
(require 'starter-kit-elpa)
;; Load up starter kit customizations:
(require 'starter-kit-defuns)
(require 'starter-kit-bindings)
(require 'starter-kit-misc)
(require 'starter-kit-registers)
(require 'starter-kit-eshell)
(require 'starter-kit-lisp)
(require 'starter-kit-ruby)
(require 'starter-kit-js)
(regen-autoloads)
(load custom-file 'noerror)
;; More complicated packages that haven't made it into ELPA yet:
(autoload 'jabber-connect "jabber" "" t)
;; TODO: rinari, slime
;; You can keep system- or user-specific customizations here:
(setq system-specific-config (concat dotfiles-dir system-name ".el")
user-specific-config (concat dotfiles-dir user-login-name ".el"))
(if (file-exists-p system-specific-config) (load system-specific-config))
(if (file-exists-p user-specific-config) (load user-specific-config))
;;; init.el ends here