doomemacs/init.el
2015-05-09 18:08:12 -04:00

104 lines
3.8 KiB
EmacsLisp

;;; Emacs for the jaded vimmer
;;
;; Author: Henrik Lissner <henrik@lissner>
;; URL: https://github.com/hlissner/emacs.d
;;
;;; Description:
;;
;; My emacs.d, which sets out to rustle emacs users' jimmies by making
;; emacs as vim-like as possible.
;;
;; Naming conventions:
;; * my--<defun-name> ; interal defuns, meant for use via elisp
;; * my-<defun-name> ; interactive command, can be used via M-x
;; * my.<defun-name> ; commands with buffer side-effects (for keybinds)
;; * my:<defun-name> ; defuns meant to be used from Ex mode
;; * *<defun/var-name> ; for altering the visual state
;;
;;; Code:
(defconst DEBUG-MODE nil)
(defconst my-dir user-emacs-directory)
(defconst my-core-dir (concat my-dir "core/"))
(defconst my-modules-dir (concat my-dir "init/"))
(defconst my-contrib-dir (concat my-dir "contrib/"))
(defconst my-themes-dir (concat my-dir "themes/"))
(defconst my-snippets-dir (concat my-dir "snippets/"))
(defconst my-tmp-dir (concat my-dir ".cache/"))
(defconst *dark-theme 'v0)
(defconst *light-theme 'github) ; wtb better light theme...
(defconst *fonts `(,(font-spec :family "Terminus (TTF)" :size 12 :antialias nil)
,(font-spec :family "Ubuntu Mono" :size 14 :antialias t)
,(font-spec :family "Inconsolata" :size 22 :antialias t)))
(add-to-list 'load-path my-core-dir)
(add-to-list 'load-path my-modules-dir)
(add-to-list 'load-path my-contrib-dir)
;; Add elisp dirs to load-path
(let ((default-directory my-contrib-dir))
(normal-top-level-add-subdirs-to-load-path))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'cask)
(cask-initialize)
(require 'use-package)
(mapc 'require
;; ls init/{init,my}* | xargs basename | sed -e 's/\..*$//'
'(core
core-ui ; aesthetics
core-evil ; evil-mode and its plugins
core-editor ; expand-region, rotate-text, smartparens
;; init-auto-complete
init-auto-insert ; for the lazy typis
init-company ; see above
init-dev ; general dev tools/settings
;; init-floobits ; when I'm feeling lonely
init-fly ; fly(check|spell)
init-git ; git-gutter + modes
init-ido ; a search engine for your car keys
init-helm ; a search engine for your life
init-project ; project tools - dired, perspective, neotree
init-cc ; C/C++/Obj-C madness
;; init-d ; D - It's C, but better!
;; init-cscope
init-csharp
init-lisp ; all things lisp; elisp, clojure
;; init-erlang
;; init-eshell
init-go
init-java ; the poster child for carpal tunnel syndome
init-js ; alert("not java, javascript!")
init-lua ; one-based indices? One-based indices.
;; init-org ; for fearless [organized] leader
init-php ; making php less painful to work with
init-python ; beautiful is better than ugly
init-regex ; /^[^\s](meaning)[^\n]*/
init-ruby ; <3
init-scss ; @include magic;
init-smalltalk ; nice weather we're having
init-sh ; #!/bin/bash_your_head_in
init-swift ; yay, emoji variables!
init-text ; I got nothing...
init-tmux
;; init-rust
;; init-vala
init-web
init-workgroups
init-yasnippet ; type for me
init-youtube ; tools for youtube vids
my-defuns
my-bindings
my-commands
my-settings
))
;; I've created a monster!