doom-emacs/init.el

92 lines
3.3 KiB
EmacsLisp
Raw Normal View History

;;; Emacs for the jaded vimmer
2014-07-15 06:21:56 +00:00
;;
;; Author: Henrik Lissner <henrik@lissner>
;; URL: https://github.com/hlissner/emacs.d
;;
2014-12-10 20:54:36 +00:00
;;; Description:
;;
2014-09-20 20:54:04 +00:00
;; My emacs.d, which sets out to rustle emacs users' jimmies by making
;; emacs as vim-like as possible.
2014-07-16 07:28:06 +00:00
;;
2014-12-05 22:28:03 +00: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
;;
;;; Code:
2014-07-15 06:21:56 +00:00
2014-12-12 20:26:34 +00:00
(defconst DEBUG-MODE nil)
2014-12-05 22:28:03 +00:00
(defconst my-dir user-emacs-directory)
2014-12-10 20:54:36 +00:00
(defconst my-core-dir (concat my-dir "core/"))
2014-12-12 20:26:34 +00:00
(defconst my-modules-dir (concat my-dir "init/"))
(defconst my-elisp-dir (concat my-dir "elisp/"))
2014-12-05 22:28:03 +00:00
(defconst my-themes-dir (concat my-dir "themes/"))
(defconst my-snippets-dir (concat my-dir "snippets/"))
(defconst my-tmp-dir (concat my-dir ".cache/"))
2014-08-30 02:37:25 +00:00
2014-12-05 22:28:03 +00:00
(defconst *dark-theme 'brin)
(defconst *light-theme 'github) ; wtb better light theme...
2014-12-05 22:28:03 +00:00
(defconst *default-font "Ubuntu Mono")
(defconst *default-font-size (if (eq system-name "ganymede.local") 12 14))
2014-07-15 06:21:56 +00:00
2014-12-12 20:26:34 +00:00
(defconst *presentation-font "Panic Sans")
(defconst *presentation-font-size 22)
2014-07-15 06:21:56 +00:00
2014-12-10 20:54:36 +00:00
(add-to-list 'load-path my-core-dir)
(add-to-list 'load-path my-modules-dir)
2014-07-15 06:21:56 +00:00
2014-12-05 22:28:03 +00:00
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2014-09-20 20:54:04 +00:00
;; Just the... bear necessities...
2014-12-05 22:28:03 +00:00
(defconst my-modules
;; ls -1 init/{init,my}* | xargs basename | sed -e 's/\..*$//'
2014-09-20 20:54:04 +00:00
'(core
2014-08-09 23:25:06 +00:00
2014-12-05 22:28:03 +00:00
;; init-auto-complete
2014-12-10 20:54:36 +00:00
init-auto-insert ; for the lazy typis
init-company ; see above
init-cc ; C/C++/Obj-C madness
2014-12-12 20:26:34 +00:00
;; init-d ; D - It's C, but better!
2014-12-05 22:28:03 +00:00
;; init-cscope
;; init-csharp
2014-12-10 20:54:36 +00:00
init-dev ; general dev tools/settings
init-elisp ; emacs lisp
2014-12-05 22:28:03 +00:00
;; init-eshell
2014-12-10 20:54:36 +00:00
init-floobits ; when I'm feeling lonely
init-fly ; fly(check|spell)
init-git ; git-gutter + modes
2014-12-05 22:28:03 +00:00
;; init-go
2014-12-10 20:54:36 +00:00
init-helm ; when you forget where you put your constellation
init-ido ; when you forget where you put your keys
init-java ; the mascot language of carpal tunnel syndome
init-js ; alert("Oh, sure dude, I know java")
init-lua ; zero-based indices? Zero-based indices.
init-org ; for fearless leader (who is organized)
init-php ; making php less painful to work with
init-project ; project tools - dired, perspective, neotree
init-projectile ; when you forget where you put your house
init-python ; beautiful is better than ugly
init-regex ; /^[^\s](meaning)[^\n]*life/
init-ruby ; I frakking love ruby
init-scss ; @include magic;
init-sh ; #!/bin/bash_your_head_in
init-swift ; ever wanted to name a variable an emoticon?
init-text ; I got nothing...
2014-12-05 22:28:03 +00:00
init-tmux
2014-12-12 20:26:34 +00:00
;; init-rust
2014-12-10 20:54:36 +00:00
init-web
init-yasnippet ; type for me
2014-12-05 22:28:03 +00:00
my-bindings
my-settings
))
2014-09-20 20:54:04 +00:00
2014-12-05 22:28:03 +00:00
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Load them in
(setq after-init-hook '((lambda() (mapc 'require my-modules))))
2014-09-20 20:54:04 +00:00
;; I've created a monster!