Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 80 lines (62 sloc) 2.568 kb
5fcb34d @technomancy initial commit
authored
1 ;;; init.el --- Where all the magic begins
2 ;;
3 ;; Part of the Emacs Starter Kit
4 ;;
5 ;; This is the first thing to get loaded.
6 ;;
7 ;; "Emacs outshines all other editing software in approximately the
8 ;; same way that the noonday sun does the stars. It is not just bigger
9 ;; and brighter; it simply makes everything else vanish."
10 ;; -Neal Stephenson, "In the Beginning was the Command Line"
11
3e66ebe @Bluejade Remove mouse interactive elements at very beginning of initialization…
Bluejade authored
12 ;; Turn off mouse interface early in startup to avoid momentary display
13 ;; You really don't need these; trust me.
14 (if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
15 (if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
16 (if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
17
3446372 @technomancy Don't end comments in colons; can be interpreted as local vars.
authored
18 ;; Load path etc.
5fcb34d @technomancy initial commit
authored
19
20 (setq dotfiles-dir (file-name-directory
21 (or (buffer-file-name) load-file-name)))
c0912d8 @technomancy Updated README with a note about structure.
authored
22
6b38e16 @technomancy Use ruby-mode for Vagrantfile.
authored
23 ;; Load up ELPA, the package manager
24
5fcb34d @technomancy initial commit
authored
25 (add-to-list 'load-path dotfiles-dir)
6b38e16 @technomancy Use ruby-mode for Vagrantfile.
authored
26
5fcb34d @technomancy initial commit
authored
27 (add-to-list 'load-path (concat dotfiles-dir "/elpa-to-submit"))
c0912d8 @technomancy Updated README with a note about structure.
authored
28
6d0a2f7 @technomancy Extract regen-autoloads function.
authored
29 (setq autoload-file (concat dotfiles-dir "loaddefs.el"))
77e270b @technomancy Rearranged ELPA code/docs.
authored
30 (setq package-user-dir (concat dotfiles-dir "elpa"))
567067e @technomancy Keep M-x customize code in a separate file.
authored
31 (setq custom-file (concat dotfiles-dir "custom.el"))
6d0a2f7 @technomancy Extract regen-autoloads function.
authored
32
b30f368 @technomancy Some changes suggested by Bob Willan.
authored
33 (require 'package)
f317a2c @technomancy s/elpa/marmalade/
authored
34 (dolist (source '(("marmalade" . "http://marmalade-repo.org/packages/")
2f7de5c @technomancy Add technomancy and elpa package sources to the list.
authored
35 ("elpa" . "http://tromey.com/elpa/")))
36 (add-to-list 'package-archives source t))
b30f368 @technomancy Some changes suggested by Bob Willan.
authored
37 (package-initialize)
38 (require 'starter-kit-elpa)
39
5fcb34d @technomancy initial commit
authored
40 ;; These should be loaded on startup rather than autoloaded on demand
3446372 @technomancy Don't end comments in colons; can be interpreted as local vars.
authored
41 ;; since they are likely to be used in every session
5fcb34d @technomancy initial commit
authored
42
43 (require 'cl)
44 (require 'saveplace)
45 (require 'ffap)
46 (require 'uniquify)
47 (require 'ansi-color)
48 (require 'recentf)
49
49f5828 @technomancy Backport locate-dominating-file to Emacs22 if needed.
authored
50 ;; backport some functionality to Emacs 22 if needed
51 (require 'dominating-file)
52
3446372 @technomancy Don't end comments in colons; can be interpreted as local vars.
authored
53 ;; Load up starter kit customizations
5fcb34d @technomancy initial commit
authored
54
55 (require 'starter-kit-defuns)
56 (require 'starter-kit-bindings)
57 (require 'starter-kit-misc)
58 (require 'starter-kit-registers)
59 (require 'starter-kit-eshell)
eb9eeb5 @technomancy Move lisp bindings and add in JS stuff.
authored
60 (require 'starter-kit-lisp)
38dc764 @genehack starter-kit-perl added
genehack authored
61 (require 'starter-kit-perl)
5fcb34d @technomancy initial commit
authored
62 (require 'starter-kit-ruby)
eb9eeb5 @technomancy Move lisp bindings and add in JS stuff.
authored
63 (require 'starter-kit-js)
5fcb34d @technomancy initial commit
authored
64
420ef86 @technomancy Add cheat.el and lisppaste.el; clean up init.el.
authored
65 (regen-autoloads)
567067e @technomancy Keep M-x customize code in a separate file.
authored
66 (load custom-file 'noerror)
420ef86 @technomancy Add cheat.el and lisppaste.el; clean up init.el.
authored
67
5f07827 @technomancy Merge branch 'master' of git://github.com/bleything/emacs-starter-kit…
authored
68 ;; You can keep system- or user-specific customizations here
f336f9a @technomancy User-specific config files.
authored
69 (setq system-specific-config (concat dotfiles-dir system-name ".el")
8fb846f @technomancy Add user-specific-dir to loadpath and load its contents. Thanks Seth!
authored
70 user-specific-config (concat dotfiles-dir user-login-name ".el")
71 user-specific-dir (concat dotfiles-dir user-login-name))
24d066a @technomancy User-specific-dir should be on the load path before user-specific-con…
authored
72 (add-to-list 'load-path user-specific-dir)
f336f9a @technomancy User-specific config files.
authored
73
74 (if (file-exists-p system-specific-config) (load system-specific-config))
24d066a @technomancy User-specific-dir should be on the load path before user-specific-con…
authored
75 (if (file-exists-p user-specific-dir)
8fb846f @technomancy Add user-specific-dir to loadpath and load its contents. Thanks Seth!
authored
76 (mapc #'load (directory-files user-specific-dir nil ".*el$")))
09d99b0 @crmne Load user-specific-dir before user-specific-config
crmne authored
77 (if (file-exists-p user-specific-config) (load user-specific-config))
8fb846f @technomancy Add user-specific-dir to loadpath and load its contents. Thanks Seth!
authored
78
2c0ee82 @technomancy Remove nxhtml. You can download this manually if you want it.
authored
79 ;;; init.el ends here
Something went wrong with that request. Please try again.