diff --git a/emacs.d/Cask b/emacs.d/Cask new file mode 100644 index 0000000..434f8de --- /dev/null +++ b/emacs.d/Cask @@ -0,0 +1,39 @@ +(source gnu) +(source melpa) +(source org) + +(depends-on "ac-slime") +(depends-on "auto-complete") +(depends-on "cask") +(depends-on "dash") +(depends-on "deferred") +(depends-on "elisp-slime-nav") +(depends-on "elm-mode") +(depends-on "epl") +(depends-on "evil") +(depends-on "evil-leader") +(depends-on "exec-path-from-shell") +(depends-on "f") +(depends-on "flycheck") +(depends-on "flycheck-haskell") +(depends-on "flycheck-hdevtools") +(depends-on "goto-chg") +(depends-on "guide-key") +(depends-on "haskell-mode") +(depends-on "js2-mode") +(depends-on "magit") +(depends-on "package-build") +(depends-on "pallet") +(depends-on "pkg-info") +(depends-on "popup") +(depends-on "popwin") +(depends-on "powerline") +(depends-on "psci") +(depends-on "purescript-mode") +(depends-on "s") +(depends-on "shut-up") +(depends-on "slime") +(depends-on "slime-js") +(depends-on "slime-repl") +(depends-on "undo-tree") +(depends-on "yasnippet") \ No newline at end of file diff --git a/emacs.d/init.el b/emacs.d/init.el new file mode 100644 index 0000000..f11d5dd --- /dev/null +++ b/emacs.d/init.el @@ -0,0 +1,66 @@ + +(require 'package) + +; Cask & Pallet +(require 'cask "/usr/local/Cellar/cask/0.7.2/cask.el") ;TODO this path sucks +(cask-initialize) +(require 'pallet) +(pallet-mode t) + +; Evil +(require 'evil-leader) +(global-evil-leader-mode) +(evil-leader/set-leader ",") +(evil-leader/set-key "b" 'switch-to-buffer) +(evil-leader/set-key "h" 'dired-jump) +(evil-leader/set-key "v" 'split-window-right) +(evil-leader/set-key "," 'other-window) +(evil-define-key 'normal emacs-lisp-mode-map (kbd "K") 'elisp-slime-nav-describe-elisp-thing-at-point) + +(require 'evil) +(evil-mode 1) + +; Ido +(require 'ido) +(ido-mode t) + +; Js2 +(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode)) + +; Slime +(setq inferior-lisp-program "/usr/local/bin/sbcl") +(require 'slime) + +(require 'elisp-slime-nav) +(defun my-lisp-hook () + (elisp-slime-nav-mode) + (turn-on-eldoc-mode) + ) +(add-hook 'emacs-lisp-mode-hook 'my-lisp-hook) + +; Org +(require 'org) +(define-key global-map "\C-cl" 'org-store-link) +(define-key global-map "\C-ca" 'org-agenda) +(setq org-log-done t) + +; Flycheck +(add-hook 'after-init-hook #'global-flycheck-mode) + +; Dired +(require 'dired-x) + +; Powerline +;(powerline-default-theme) + +; TODO +; evil-org-mode +; expand-region +; helm +; smex +; magit +; ace-jump +; god-mode?? + +(provide 'init) +;;; init.el ends here