Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f607abfeb2
Fetching contributors…

Cannot retrieve contributors at this time

91 lines (72 sloc) 3.192 kb
;;; 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"
;; Turn off mouse interface early in startup to avoid momentary display
;; You really don't need these; trust me.
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
;; Load path etc.
(setq dotfiles-dir (file-name-directory
(or (buffer-file-name) load-file-name)))
(setq custom-file (concat dotfiles-dir user-login-name "-private" "/custom.el"))
(add-to-list 'load-path dotfiles-dir)
;; Load up ELPA, the package manager
(add-to-list 'load-path (concat dotfiles-dir "/elpa-to-submit"))
(setq autoload-file (concat dotfiles-dir "loaddefs.el"))
(setq package-user-dir (concat dotfiles-dir "elpa"))
(require 'package)
(package-initialize)
(setq package-archives '(("marmalade" . "http://marmalade-repo.org/packages/")
("gnu" . "http://elpa.gnu.org/packages/")
("elpa" . "http://tromey.com/elpa/")))
(require 'starter-kit-elpa)
;; Vendor overrides ELPA
(add-to-list 'load-path (concat dotfiles-dir "/vendor"))
(add-to-list 'load-path (concat dotfiles-dir "/vendor/scratch"))
(add-to-list 'load-path (concat dotfiles-dir "/vendor/toggle"))
(add-to-list 'load-path (concat dotfiles-dir "/vendor/yaml-mode"))
(add-to-list 'load-path (concat dotfiles-dir "/vendor/ac-slime"))
;; These should be loaded on startup rather than autoloaded on demand
;; since they are likely to be used in every session
(require 'ansi-color)
(require 'cl)
(require 'ffap)
(require 'find-file-in-project)
(require 'magit)
(require 'saveplace)
(require 'uniquify)
;; Load up starter kit customizations
(require 'starter-kit-defuns)
(require 'starter-kit-bindings)
(require 'starter-kit-misc)
(require 'starter-kit-eshell)
(require 'starter-kit-lisp)
(require 'starter-kit-ruby)
(require 'starter-kit-js)
(require 'starter-kit-php)
(require 'starter-kit-org)
(require 'starter-kit-sql)
(regen-autoloads)
(load custom-file 'noerror)
;; 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")
user-specific-dir (concat dotfiles-dir user-login-name)
user-specific-private-dir (concat user-specific-dir "-private"))
(add-to-list 'load-path user-specific-dir)
(add-to-list 'load-path user-specific-private-dir)
(if (file-exists-p system-specific-config) (load system-specific-config))
(if (file-exists-p user-specific-config) (load user-specific-config))
(if (file-exists-p user-specific-dir)
(mapc #'load (directory-files user-specific-dir nil ".*el$")))
(if (file-exists-p user-specific-private-dir)
(mapc #'load (directory-files user-specific-private-dir nil ".*el$")))
;;; init.el ends here
Jump to Line
Something went wrong with that request. Please try again.