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-12-10 15:54:36 -05:00
|
|
|
;;; Description:
|
|
|
|
;;
|
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-12-05 17:28:03 -05:00
|
|
|
;; 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
|
|
|
|
;;
|
2014-07-17 02:59:23 -04:00
|
|
|
;;; Code:
|
2015-05-16 23:27:55 -04:00
|
|
|
(defvar DEBUG-MODE nil)
|
2014-07-17 02:59:23 -04:00
|
|
|
|
2015-05-16 23:27:55 -04:00
|
|
|
(defvar my-dir user-emacs-directory)
|
|
|
|
(defvar my-core-dir (concat my-dir "core/"))
|
|
|
|
(defvar my-modules-dir (concat my-dir "init/"))
|
|
|
|
(defvar my-contrib-dir (concat my-dir "contrib/"))
|
|
|
|
(defvar my-themes-dir (concat my-dir "themes/"))
|
|
|
|
(defvar my-snippets-dir (concat my-dir "snippets/"))
|
|
|
|
(defvar my-tmp-dir (concat my-dir ".cache/"))
|
2014-08-29 22:37:25 -04:00
|
|
|
|
2015-05-16 23:27:55 -04:00
|
|
|
(defvar *dark-theme 'v0)
|
|
|
|
(defvar *light-theme 'github) ; wtb better light theme...
|
|
|
|
(defvar *fonts `(,(font-spec :family "Terminus (TTF)" :size 12 :antialias nil)
|
|
|
|
,(font-spec :family "Inconsolata" :size 14 :antialias t)
|
|
|
|
,(font-spec :family "Ubuntu Mono" :size 20 :antialias t)
|
|
|
|
))
|
2014-07-15 02:21:56 -04:00
|
|
|
|
2015-05-16 23:27:55 -04:00
|
|
|
(push my-core-dir load-path)
|
|
|
|
(push my-modules-dir load-path)
|
|
|
|
(push my-contrib-dir load-path)
|
|
|
|
;; Add elisp and cask dirs to load-path
|
2015-05-08 03:05:55 -04:00
|
|
|
(let ((default-directory my-contrib-dir))
|
2015-01-09 21:47:51 -05:00
|
|
|
(normal-top-level-add-subdirs-to-load-path))
|
2015-05-16 23:27:55 -04:00
|
|
|
(let ((default-directory (expand-file-name (concat ".cask/" emacs-version "/elpa/") my-dir)))
|
|
|
|
(normal-top-level-add-subdirs-to-load-path))
|
2015-04-22 20:48:28 -04:00
|
|
|
|
2015-05-09 18:08:12 -04:00
|
|
|
(require 'use-package)
|
2015-01-09 21:47:51 -05:00
|
|
|
(mapc 'require
|
|
|
|
;; ls init/{init,my}* | xargs basename | sed -e 's/\..*$//'
|
|
|
|
'(core
|
2015-05-07 03:19:24 -04:00
|
|
|
core-ui ; aesthetics
|
|
|
|
core-evil ; evil-mode and its plugins
|
|
|
|
core-editor ; expand-region, rotate-text, smartparens
|
2014-11-29 20:21:03 -05:00
|
|
|
|
2015-01-09 21:47:51 -05:00
|
|
|
;; init-auto-complete
|
|
|
|
init-auto-insert ; for the lazy typis
|
|
|
|
init-company ; see above
|
2015-04-22 20:48:28 -04:00
|
|
|
init-fly ; fly(check|spell)
|
|
|
|
init-git ; git-gutter + modes
|
|
|
|
init-ido ; a search engine for your car keys
|
2015-05-09 18:08:12 -04:00
|
|
|
init-helm ; a search engine for your life
|
2015-05-14 23:50:20 -04:00
|
|
|
init-project ; project tools: dired, neotree
|
2015-04-22 20:48:28 -04:00
|
|
|
|
2015-01-09 21:47:51 -05:00
|
|
|
init-cc ; C/C++/Obj-C madness
|
|
|
|
;; init-d ; D - It's C, but better!
|
|
|
|
;; init-cscope
|
|
|
|
init-csharp
|
|
|
|
;; init-erlang
|
|
|
|
;; init-eshell
|
2015-04-30 16:43:44 -04:00
|
|
|
init-go
|
2015-01-09 21:47:51 -05:00
|
|
|
init-java ; the poster child for carpal tunnel syndome
|
|
|
|
init-js ; alert("not java, javascript!")
|
2015-05-09 18:08:12 -04:00
|
|
|
init-lua ; one-based indices? One-based indices.
|
2015-05-07 03:19:24 -04:00
|
|
|
;; init-org ; for fearless [organized] leader
|
2015-01-09 21:47:51 -05:00
|
|
|
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;
|
2015-01-26 02:15:27 -05:00
|
|
|
init-smalltalk ; nice weather we're having
|
2015-01-09 21:47:51 -05:00
|
|
|
init-sh ; #!/bin/bash_your_head_in
|
|
|
|
init-swift ; yay, emoji variables!
|
|
|
|
init-text ; I got nothing...
|
|
|
|
init-tmux
|
|
|
|
;; init-rust
|
2015-01-26 02:15:27 -05:00
|
|
|
;; init-vala
|
2015-01-09 21:47:51 -05:00
|
|
|
init-web
|
2015-05-06 05:39:29 -04:00
|
|
|
init-workgroups
|
2015-01-09 21:47:51 -05:00
|
|
|
init-yasnippet ; type for me
|
2015-03-15 15:41:25 -04:00
|
|
|
init-youtube ; tools for youtube vids
|
2014-09-20 16:54:04 -04:00
|
|
|
|
2015-05-07 03:19:24 -04:00
|
|
|
my-defuns
|
2015-01-09 21:47:51 -05:00
|
|
|
my-bindings
|
2015-05-07 03:19:24 -04:00
|
|
|
my-commands
|
2015-01-09 21:47:51 -05:00
|
|
|
my-settings
|
|
|
|
))
|
2014-12-05 17:28:03 -05:00
|
|
|
|
2014-09-20 16:54:04 -04:00
|
|
|
;; I've created a monster!
|