Clean up + refactor

This commit is contained in:
Henrik Lissner 2015-09-30 13:47:57 -04:00
parent 2e702b260e
commit 844039b99b
10 changed files with 215 additions and 271 deletions

111
init.el
View file

@ -41,68 +41,69 @@
;;; License: GPLv3
(defconst narf-debug-mode nil)
(setq gc-cons-threshold 84857600) ; avoid garbage collection
(scroll-bar-mode -1) ; no scrollbar
(tool-bar-mode -1) ; no toolbar
(menu-bar-mode -1) ; no menubar
(when window-system
(set-frame-font (if (> (display-pixel-width) 1280)
(font-spec :family "Ubuntu Mono" :size 14 :antialias t)
(font-spec :family "terminus (ttf)" :size 12 :antialias nil)))
(set-frame-parameter nil 'fullscreen 'fullboth))
(let (file-name-handler-alist) ; premature optimization weee!
(scroll-bar-mode -1) ; no scrollbar
(tool-bar-mode -1) ; no toolbar
(menu-bar-mode -1) ; no menubar
(load (concat user-emacs-directory "init-load-path.el"))
(load-theme (if window-system 'narf-dark 'wombat) t)
(mapc 'require
`(;; benchmark ; records load times in `require-times'; see `list-times'
core ; core/core.el
(set-frame-font (font-spec :family "terminus (ttf)" :size 12 :antialias nil))
(load (concat user-emacs-directory "init-load-path.el"))
(load-theme (if window-system 'narf-dark 'brin) t)
(set-frame-parameter nil 'fullscreen 'fullboth)
(mapc 'require
`(core ; core/core.el
,(cond (IS-MAC 'core-os-osx)
(IS-LINUX 'core-os-linux)
(IS-WINDOWS 'core-os-win32))
,(cond (IS-MAC 'core-os-osx)
(IS-LINUX 'core-os-linux)
(IS-WINDOWS 'core-os-win32))
core-ui ; draw me like one of your French editors
core-evil ; come to the dark side, we have cookies
core-editor ; filling the editor-shaped hole in the emacs OS
core-company ; for the lazy typist
core-yasnippet ; for the lazier typist
core-auto-insert ; for the laziest typist
core-flycheck ; remember that semicolon you forgot?
core-project ; whose project am I in?
core-vcs ; version control is a programmer's best friend
core-helm ; a search engine for life and love
core-quickrun ; run code, run.
core-workgroups ; cure Emacs alzheimers
core-ui ; draw me like one of your French editors
core-evil ; come to the dark side, we have cookies
core-editor ; filling the editor-shaped hole in the emacs OS
core-company ; for the lazy typist
core-yasnippet ; for the lazier typist
core-auto-insert ; for the laziest typist
core-flycheck ; remember that semicolon you forgot?
core-project ; whose project am I in?
core-vcs ; version control is a programmer's best friend
core-helm ; a search engine for life and love
core-quickrun ; run code, run.
core-workgroups ; cure Emacs alzheimers
module-cc ; c/c++/obj-c madness
;; module-crystal ; ruby at the speed of c
;; module-csharp ; unity, mono and xamarin
module-data ; dbs 'n data formats
module-elisp ; drowning in parentheses
module-eshell ; eshell (on windows)
module-go ; a hipster dialect
module-java ; the poster child for carpal tunnel syndome
module-js ; alert("not java, javascript!")
module-lb6 ; LaunchBar 6 development
module-lua ; one-based indices? one-based indices.
module-markdown ; markdown
;; module-org ; for fearless [organized] leader
module-php ; making php less painful to work with
module-python ; beautiful is better than ugly
module-regex ; /^[^\s](meaning)[^\n]*/
module-ruby ; <3
module-rust
module-sass ; @include magic;
module-sh ; she sells Z-shells by the C shore
module-swift ; yay, emoji variables!
module-vim ; the confessional
module-web ; for the 2.0'er
module-cc ; c/c++/obj-c madness
module-crystal ; ruby at the speed of c
module-csharp ; unity, mono and xamarin
module-data ; dbs 'n data formats
module-eshell ; eshell (on windows)
module-go ; a hipster dialect
module-java ; the poster child for carpal tunnel syndome
module-js ; alert("not java, javascript!")
module-elisp ;
module-lua ; one-based indices? one-based indices.
module-lb6 ; LaunchBar 6 development
;; module-org ; for fearless [organized] leader
module-php ; making php less painful to work with
module-python ; beautiful is better than ugly
module-regex ; /^[^\s](meaning)[^\n]*/
module-ruby ; <3
module-sass ; @include magic;
module-sh ; she sells Z-shells by the C shore
module-swift ; yay, emoji variables!
module-markdown ; markdown
;; module-rust
module-vim ; the confessional
module-web ; for the 2.0'er
my-bindings
my-commands
))
my-bindings
my-commands
)))
(defun display-startup-echo-area-message ()
(message ">>> Loaded in %s" (emacs-init-time)))
(require 'server)
(unless (server-running-p)
(server-start))
;;; I think so Brain...