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-12-05 17:28:03 -05:00
|
|
|
;;; Description:
|
|
|
|
;;
|
|
|
|
;; 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
|
|
|
|
;; * 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:
|
2014-07-15 02:21:56 -04:00
|
|
|
|
2014-12-05 17:28:03 -05:00
|
|
|
(defconst *debug-mode nil)
|
2014-07-17 02:59:23 -04:00
|
|
|
|
2014-12-05 17:28:03 -05:00
|
|
|
(defconst my-dir user-emacs-directory)
|
|
|
|
(defconst my-init-dir (concat my-dir "init/"))
|
|
|
|
(defconst my-elisp-dir (concat my-dir "elisp/"))
|
|
|
|
(defconst my-themes-dir (concat my-dir "themes/"))
|
|
|
|
(defconst my-snippets-dir (concat my-dir "snippets/"))
|
|
|
|
(defconst my-ac-dicts-dir (concat my-dir "ac-dict/"))
|
|
|
|
(defconst my-tmp-dir (concat my-dir ".cache/"))
|
2014-08-29 22:37:25 -04:00
|
|
|
|
2014-12-05 17:28:03 -05:00
|
|
|
(defconst *dark-theme 'brin)
|
|
|
|
(defconst *light-theme 'github) ; wtb better light theme...
|
2014-11-29 20:21:03 -05:00
|
|
|
|
2014-12-05 17:28:03 -05:00
|
|
|
(defconst *default-font "Ubuntu Mono")
|
|
|
|
(defconst *default-font-size (if (eq system-name "ganymede.local") 12 14))
|
2014-07-15 02:21:56 -04:00
|
|
|
|
2014-12-05 17:28:03 -05:00
|
|
|
(defconst *presentation-font *default-font)
|
|
|
|
(defconst *presentation-font-size 18)
|
2014-07-15 02:21:56 -04:00
|
|
|
|
2014-12-05 17:28:03 -05:00
|
|
|
(add-to-list 'load-path my-init-dir)
|
2014-07-15 02:21:56 -04:00
|
|
|
|
2014-12-05 17:28:03 -05:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2014-09-20 16:54:04 -04:00
|
|
|
;; Just the... bear necessities...
|
2014-12-05 17:28:03 -05:00
|
|
|
(defconst my-modules
|
|
|
|
;; ls -1 init/{init,my}* | xargs basename | sed -e 's/\..*$//'
|
2014-09-20 16:54:04 -04:00
|
|
|
'(core
|
2014-08-09 19:25:06 -04:00
|
|
|
|
2014-12-05 17:28:03 -05:00
|
|
|
;; init-auto-complete
|
|
|
|
init-company
|
|
|
|
init-auto-insert
|
|
|
|
;; init-cpp
|
|
|
|
;; init-cscope
|
|
|
|
;; init-csharp
|
|
|
|
init-dev
|
|
|
|
init-elisp
|
|
|
|
;; init-eshell
|
|
|
|
init-fly
|
|
|
|
init-git
|
|
|
|
;; init-go
|
|
|
|
init-helm
|
|
|
|
init-ido
|
|
|
|
init-java
|
|
|
|
init-lua
|
|
|
|
init-org
|
|
|
|
init-project ; project management settings & tools
|
|
|
|
init-projectile
|
2014-09-05 17:08:40 -04:00
|
|
|
init-python
|
2014-12-05 17:28:03 -05:00
|
|
|
init-regex
|
|
|
|
init-ruby
|
|
|
|
init-sh
|
|
|
|
;; init-swift
|
|
|
|
init-text
|
|
|
|
init-tmux
|
|
|
|
init-webdev
|
|
|
|
init-yasnippet
|
2014-11-29 20:21:03 -05:00
|
|
|
|
2014-12-05 17:28:03 -05:00
|
|
|
my-bindings
|
|
|
|
my-settings
|
2014-08-07 19:50:33 -04:00
|
|
|
))
|
2014-09-20 16:54:04 -04:00
|
|
|
|
2014-12-05 17:28:03 -05:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; Load them in
|
|
|
|
(setq after-init-hook '((lambda() (mapc 'require my-modules))))
|
|
|
|
|
2014-09-20 16:54:04 -04:00
|
|
|
;; I've created a monster!
|