mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
178 lines
5.7 KiB
EmacsLisp
178 lines
5.7 KiB
EmacsLisp
;;
|
|
;; Load Package
|
|
;;
|
|
|
|
(require 'package)
|
|
(setq package-archives (cons '("tromey" . "http://tromey.com/elpa/") package-archives))
|
|
(package-initialize)
|
|
|
|
|
|
;;
|
|
;; Load el-get
|
|
;;
|
|
|
|
(add-to-list 'load-path (config-path "el-get/el-get"))
|
|
(require 'el-get)
|
|
|
|
;;; Uses 2.stable branch, doesn't work with some of my stuff
|
|
;; (unless (require 'el-get nil t)
|
|
;; (url-retrieve
|
|
;; "https://github.com/dimitri/el-get/raw/master/el-get-install.el"
|
|
;; (lambda (s)
|
|
;; (end-of-buffer)
|
|
;; (eval-print-last-sexp))))
|
|
|
|
|
|
;;
|
|
;; el-get Sources
|
|
;;
|
|
|
|
(setq el-get-sources
|
|
'((:name birds-of-paradise-plus-theme
|
|
:description "A Emacs port of Joseph Bergantine's light-on-dark theme by the same name."
|
|
:website "https://github.com/jimeh/birds-of-paradise-plus-theme.el"
|
|
:type git
|
|
:url "https://github.com/jimeh/birds-of-paradise-plus-theme.el.git"
|
|
:post-init (add-to-list 'custom-theme-load-path
|
|
default-directory))
|
|
(:name eproject
|
|
:type git
|
|
:url "https://github.com/jrockway/eproject.git"
|
|
:post-init (progn
|
|
(require 'eproject)
|
|
(require 'eproject-extras)))
|
|
(:name escreen
|
|
:description "Emacs window session manager"
|
|
:type git
|
|
:url "git://github.com/renard/escreen-el.git"
|
|
:post-init (progn
|
|
(autoload 'escreen-install "escreen" nil t)))
|
|
|
|
(:name feature-mode
|
|
:type git
|
|
:url "git://github.com/michaelklishin/cucumber.el.git")
|
|
(:name flymake-cursor
|
|
:type emacswiki
|
|
:features flymake-cursor)
|
|
(:name flymake-elisp
|
|
:type git
|
|
:url "git://gist.github.com/1130849.git")
|
|
(:name flymake-ruby
|
|
:type git
|
|
:url "git://github.com/purcell/flymake-ruby.git"
|
|
:features flymake-ruby
|
|
:post-init (progn
|
|
(add-hook 'ruby-mode-hook 'flymake-ruby-load)))
|
|
;; (:name flymake-coffeescript
|
|
;; :type git
|
|
;; :url "https://github.com/kui/flymake-coffeescript.git"
|
|
;; :features flymake-coffeescript
|
|
;; :post-init (progn
|
|
;; (add-hook 'coffee-mode-hook
|
|
;; 'flymake-coffeescript-load)))
|
|
(:name fill-column-indicator
|
|
:type git
|
|
:url "git://github.com/alpaker/Fill-Column-Indicator.git"
|
|
:features fill-column-indicator)
|
|
(:name hackertype
|
|
:type git
|
|
:url "https://github.com/bitemyapp/hacker-type-emacs.git"
|
|
:load "hackertype.el")
|
|
(:name linum+
|
|
:type http
|
|
:url "http://dea.googlecode.com/svn/trunk/my-lisps/linum+.el")
|
|
(:name rsense
|
|
:description "Intelligent Ruby code-completion"
|
|
:website "http://cx4a.org/software/rsense/"
|
|
:type git
|
|
:url "https://github.com/m2ym/rsense.git"
|
|
:build ("ant" "chmod +x bin/rsense")
|
|
:post-init (progn
|
|
(setq rsense-home (expand-file-name default-directory))
|
|
(add-to-list 'load-path (concat rsense-home "/etc"))
|
|
(require 'rsense)))
|
|
(:name ruby-mode
|
|
:type svn
|
|
:url "http://svn.ruby-lang.org/repos/ruby/trunk/misc/")
|
|
(:name tiling
|
|
:type emacswiki
|
|
:features tiling)
|
|
(:name tomorrow-theme
|
|
:description "Colour Schemes for Hackers"
|
|
:website "https://github.com/chriskempson/tomorrow-theme"
|
|
:type git
|
|
:url "https://github.com/chriskempson/tomorrow-theme.git"
|
|
:load-path "GNU Emacs"
|
|
:post-init (add-to-list 'custom-theme-load-path
|
|
default-directory))
|
|
(:name tomorrow-night-paradise-theme
|
|
:description "A light-on-dark Emacs theme which is essentially a tweaked version of Chris Kempson's Tomorrow Night Bright theme."
|
|
:website "https://github.com/jimeh/tomorrow-night-paradise-theme.el"
|
|
:type git
|
|
:url "git://github.com/jimeh/tomorrow-night-paradise-theme.el.git"
|
|
:post-init (add-to-list 'custom-theme-load-path
|
|
default-directory))
|
|
(:name yasnippet
|
|
:type git
|
|
:url "https://github.com/capitaomorte/yasnippet.git")))
|
|
|
|
|
|
;;
|
|
;; My Packages
|
|
;;
|
|
|
|
(setq my-packages
|
|
(append
|
|
'(auto-complete
|
|
auto-complete-emacs-lisp
|
|
autopair
|
|
coffee-mode
|
|
ecb
|
|
full-ack
|
|
git-blame
|
|
highlight-indentation
|
|
inf-ruby
|
|
magit
|
|
magithub
|
|
markdown-mode
|
|
php-mode-improved
|
|
ruby-mode
|
|
ruby-compilation
|
|
smart-tab
|
|
textmate
|
|
undo-tree
|
|
yaml-mode
|
|
yasnippet)
|
|
(mapcar 'el-get-source-name el-get-sources)))
|
|
|
|
(el-get 'sync my-packages)
|
|
|
|
;;
|
|
;; Initialize Packages
|
|
;;
|
|
|
|
(defun initialize-packages ()
|
|
;; Activate ECB if window-system
|
|
(when (require 'ecb nil 'noerror)
|
|
(setq stack-trace-on-error t) ;; hack to fix a load-error
|
|
(if window-system
|
|
(ecb-activate)))
|
|
|
|
;; Load Auto-Complete and addons
|
|
(when (require 'auto-complete nil 'noerror)
|
|
(require 'auto-complete-emacs-lisp))
|
|
|
|
;; Load and setup Escreen
|
|
(when (require 'escreen nil 'noerror)
|
|
(escreen-install))
|
|
|
|
;; Load Undo-Tree
|
|
(require 'undo-tree)
|
|
|
|
;; Load Linum+
|
|
(require 'linum+)
|
|
|
|
;; Load full-ack
|
|
(require 'full-ack)
|
|
)
|