2014-07-17 02:59:23 -04:00
|
|
|
;;; Emacs for the jaded vimmer
|
2014-07-15 02:21:56 -04:00
|
|
|
;;
|
|
|
|
;; Author: Henrik Lissner <henrik@lissner>
|
|
|
|
;; URL: https://github.com/hlissner/emacs.d
|
|
|
|
;;
|
2014-09-20 16:54:04 -04:00
|
|
|
;; My emacs.d, which sets out to rustle emacs users' jimmies by making
|
|
|
|
;; emacs as vim-like as possible.
|
2014-07-16 03:28:06 -04:00
|
|
|
;;
|
2014-07-17 02:59:23 -04:00
|
|
|
;;; Code:
|
2014-07-15 02:21:56 -04:00
|
|
|
|
2014-09-20 16:54:04 -04:00
|
|
|
;; instead of /
|
|
|
|
(cd "~")
|
2014-11-29 20:21:03 -05:00
|
|
|
(setq use-package-verbose t) ; for debug purposes
|
2014-07-17 02:59:23 -04:00
|
|
|
|
2014-08-29 22:37:25 -04:00
|
|
|
(require 'cask)
|
|
|
|
(cask-initialize)
|
|
|
|
|
2014-11-29 20:21:03 -05:00
|
|
|
(setq user-mail-address "henrik@lissner.net")
|
|
|
|
|
2014-09-05 17:08:40 -04:00
|
|
|
(defconst *dir (file-name-directory load-file-name))
|
2014-09-20 16:54:04 -04:00
|
|
|
(defconst *init-dir (concat *dir "init/"))
|
|
|
|
(defconst *themes-dir (concat *dir "themes/"))
|
|
|
|
(defconst *elisp-dir (concat *dir "elisp/"))
|
|
|
|
(defconst *snippets-dir (concat *dir "snippets/"))
|
2014-11-29 20:21:03 -05:00
|
|
|
(defconst *ac-dicts-dir (concat *dir "ac-dict/"))
|
|
|
|
(defconst *tmp-dir (concat *dir "tmp/"))
|
2014-07-15 02:21:56 -04:00
|
|
|
|
2014-09-05 17:08:40 -04:00
|
|
|
(defconst *theme 'brin)
|
2014-11-29 20:21:03 -05:00
|
|
|
(defconst *font
|
|
|
|
(if (string-equal system-name "ganymede.local")
|
|
|
|
"Ubuntu Mono-12" ; Use smaller font on my laptop
|
|
|
|
"Ubuntu Mono-14")) ; And larger font everywhere else
|
2014-07-15 02:21:56 -04:00
|
|
|
|
2014-09-05 17:08:40 -04:00
|
|
|
(add-to-list 'load-path *init-dir)
|
2014-07-15 02:21:56 -04:00
|
|
|
|
2014-09-20 16:54:04 -04:00
|
|
|
;; Just the... bear necessities...
|
2014-08-07 18:35:22 -04:00
|
|
|
(mapc 'require
|
2014-09-20 16:54:04 -04:00
|
|
|
'(core
|
2014-11-29 20:21:03 -05:00
|
|
|
core-defuns ; Defun library
|
|
|
|
core-editor ; Global editor behavior (w/ evil)
|
2014-09-20 16:54:04 -04:00
|
|
|
core-ui ; User interface layout & behavior
|
|
|
|
core-osx ; Mac-specific config
|
2014-09-05 17:08:40 -04:00
|
|
|
|
2014-11-29 20:21:03 -05:00
|
|
|
;; Essential plugins & modules
|
2014-09-20 16:54:04 -04:00
|
|
|
init-ido ; Ido setup
|
2014-11-29 20:21:03 -05:00
|
|
|
init-project ; Project nav+search tools (projectile, helm, ag)
|
2014-09-20 16:54:04 -04:00
|
|
|
init-snippets ; Snippet engine
|
|
|
|
init-git ; GIT tools/settings
|
|
|
|
init-fly ; Syntax & spell checker
|
2014-11-29 20:21:03 -05:00
|
|
|
init-auto-complete ; Auto-complete engine
|
|
|
|
init-auto-insert ; File auto-insert templates
|
|
|
|
init-cscope ; Global code indexing
|
2014-08-09 19:25:06 -04:00
|
|
|
|
2014-09-20 16:54:04 -04:00
|
|
|
;; Modes & environments
|
|
|
|
init-text ; Plain text editing (markdown, text)
|
2014-11-29 20:21:03 -05:00
|
|
|
init-sh ; Shell script editing (sh, zsh)
|
2014-09-20 16:54:04 -04:00
|
|
|
init-org ; Org-mode: personal gtd/notes
|
|
|
|
init-dev ; Generic dev tools & environment for all programming
|
2014-09-05 17:08:40 -04:00
|
|
|
init-ruby
|
|
|
|
init-python
|
2014-11-29 20:21:03 -05:00
|
|
|
;;init-php
|
|
|
|
init-webdev ; Environment for webdev (SCSS, PHP, Rails, Javascript)
|
2014-09-20 16:54:04 -04:00
|
|
|
init-love ; Love.app gamedev
|
|
|
|
init-cpp ; C++ gamedev
|
2014-11-29 20:21:03 -05:00
|
|
|
init-java ; Java-specific settings (including eclim)
|
|
|
|
;; init-go ; Go-lang
|
|
|
|
;; init-swift ; iOS/Mac dev environment for swift
|
2014-09-22 12:02:33 -04:00
|
|
|
;; init-csharp ; Emacs as a Csharp/Unity IDE
|
2014-09-20 16:54:04 -04:00
|
|
|
|
2014-11-29 20:21:03 -05:00
|
|
|
;; My homebaked packages
|
|
|
|
my-commands ; Ex commands & evil operators/commands
|
|
|
|
my-coderunner ; Code/REPL runners
|
|
|
|
|
|
|
|
;; Personal settings (must be last!)
|
2014-09-20 16:54:04 -04:00
|
|
|
my-settings ; Any other custom settings
|
|
|
|
my-keymaps ; My keybindings
|
2014-08-07 19:50:33 -04:00
|
|
|
))
|
2014-09-20 16:54:04 -04:00
|
|
|
|
|
|
|
;; I've created a monster!
|