doomemacs/init.el

118 lines
5.5 KiB
EmacsLisp
Raw Normal View History

2015-06-06 18:40:33 +08:00
;;; init.el --- NARF bootstrap
2014-07-15 14:21:56 +08:00
;;
2015-06-06 18:40:33 +08:00
;; Author: Henrik Lissner <henrik@lissner.net>
;; URL: https://github.com/hlissner/emacs.d
2015-12-27 15:56:43 +08:00
;; Version: 0.8.0
2014-07-15 14:21:56 +08:00
;;
;;; Are you pondering what I'm pondering, Pinky?
2014-12-11 04:54:36 +08:00
;;
2015-06-06 18:38:16 +08:00
;; ,,, !/:.
;; /::\". !!:::
;; :::::\". ," \:,::
;; ::::::\ ". ,","\::.
2015-06-06 18:40:33 +08:00
;; \:::::":\ "/""v' :'
2015-06-06 18:38:16 +08:00
;; !::::\ ! \ \ __
;; "::::\ \ ! \.&&&&,
2015-06-06 18:40:33 +08:00
;; ," __ ", cd,&&&&&&'
2015-06-06 18:38:16 +08:00
;; \ ". "" / \&&&" _,---
;; "",__\_ / _,:":::::
;; _," ,"" ,-,__,/":,_ ,",":::::::
;; _," ," `'' ::::,",__,,----,,__," /:::::::::
;; ," ,".__, \:::," " /:::":::::/
;; ," ,/"::::::\ >" (_-"/::::::
;; / ,"_!:::::::/, ," _,,--, /::::::/
;; / "" _,"\:::::::' ! ," ){:::::/
;; ! _," \ "", \,"""-,____,"__,,,"_," _/
2015-06-06 18:40:33 +08:00
;; ""t" \\ \ "-,_(*)&&&&(*)," \ ."
2015-06-06 18:38:16 +08:00
;; / \", ! , \ ! - )
;; ! \ "" ! !==!"-,__,'
;; ! \ """_""""`, ", /"_
2015-06-06 18:40:33 +08:00
;; \ , .l /" " ", \! ,_/
2015-06-06 18:38:16 +08:00
;; ), \ / \ \/ ,, /! !
;; ,::\ \," \ ! \/ ! !
;; _,::::" ) )\ ," ___ \ -,_, ,"",! !
;; __,,,::::"" ," ,":::,-:::--:" __\_!__/_""-,_!
;; ,,:::""""""" ,:_,""__...._"""::::"" /:::::" ""::::::
2015-06-06 18:40:33 +08:00
;; (:._ l::::::::::::\\/ "" ""
2015-06-06 18:38:16 +08:00
;; """"--,,,--- """"
2014-12-06 06:28:03 +08:00
;;
2015-06-06 18:40:33 +08:00
;; These mice are not part of GNU Emacs.
;;
;;; License: GPLv3
2014-08-30 10:37:25 +08:00
2015-12-23 16:51:15 +08:00
(defconst EMACS-WRITE nil)
2015-10-25 12:39:54 +08:00
(defconst narf-theme 'narf-dark)
NARF v0.7.0 vcs: + +git-gutter to conf-modes; -git-gutter from evil-insert-state-exit + switch github-browse-file for browse-at-remote + fix <leader>ob; add <leader>d[./sr] vc bindings + vc-annotate bindings and initial state Workgroups2 integration: + don't mess with buffers (speeds up emacs a lot!) + unicode numbers in display + single display function + remember workgroup uid instead (and smarter :tabrename) + clean up after wg update Org-mode + give highlight precedence to links in org-mode + enable encryption + config clean up + use different font for org + exclude attachments in recentf + redo latex and inline-image config + add narf/org-open-notes + update file templates for org CRM Mode-line + polish mode-line + decouple from spaceline-segments.el + refactor narf|spaceline-env-update + add macro-recording and buffer-size indicators to mode-line + python: '2>&1' in env-command + flycheck fringe indicator: change to arrow Aesthetics + update narf-dark-theme + add narf-minibuffer-active face + change writing indicator in writing-mode Misc + fix whitespace in display-startup-echo-area-message + reset fonts for more unicode characters + custom imenu entries + helm-imenu fontification + enable yascroll-bar in REPLs + reorganize my-commands.el + force quit iedit on ESC in normal mode + update snippets submodule + remove ido init (helm handles it all) [EXPERIMENTAL] + back to Terminus(TTF) font + popwin: update config for git-gutter and vc-diff windows + highlight :g[lobal] and :al[ign] matches + decouple narf/get-buffers+narf/get-all-buffers from wg-mess-with-buffer-list + fix narf/helm-buffers-dwim (add interactive form)
2015-12-12 05:51:04 +08:00
(defconst narf-default-font (font-spec :family "Terminus (TTF)" :size 12 :antialias nil))
2015-11-30 18:33:25 +08:00
(defconst narf-writing-font (font-spec :family "Hack" :size 14))
(defconst narf-big-font (font-spec :family "Inconsolata" :size 20))
2015-04-23 08:48:28 +08:00
2015-10-25 12:39:54 +08:00
;; prematurely optimize for faster startup
2015-11-30 18:33:25 +08:00
(let (file-name-handler-alist
(gc-cons-threshold 169715200))
2015-11-17 15:11:48 +08:00
(scroll-bar-mode -1) ; no scrollbar
(tool-bar-mode -1) ; no toolbar
2015-12-23 09:12:39 +08:00
(load (concat user-emacs-directory "init-packages.el"))
2015-11-11 07:10:32 +08:00
(load-theme narf-theme t)
2015-10-25 12:39:54 +08:00
(mapc 'require
`(core ; core/core.el
2015-04-23 08:48:28 +08:00
2015-12-09 15:03:13 +08:00
;;; The heart of NARF
2015-11-22 07:03:20 +08:00
core-popup ; taming stray windows
2015-10-25 12:39:54 +08:00
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
2015-12-23 16:51:15 +08:00
core-eval ; run code, run.
2015-12-30 12:39:24 +08:00
core-workgroups ; cure Emacs alzheimers + tab emulation
2015-06-15 15:06:10 +08:00
2015-12-23 16:51:15 +08:00
;;; Environments
2015-10-25 12:39:54 +08:00
module-cc ; c/c++/obj-c madness
module-csharp ; unity, .NET, and mono shenanigans
module-data ; dbs 'n data formats
2015-12-23 16:51:15 +08:00
module-go ; the hipster dialect
2015-10-25 12:39:54 +08:00
module-java ; the poster child for carpal tunnel syndome
2015-11-22 07:03:20 +08:00
module-js ; all(hope(abandon(ye(who(enter(here))))))
2015-12-26 10:07:53 +08:00
module-lisp ; drowning in parentheses
2015-10-25 12:39:54 +08:00
module-lua ; one-based indices? one-based indices.
module-markdown ; markdown
2015-12-07 11:56:34 +08:00
module-nim ; look out Abraham
2015-10-25 12:39:54 +08:00
module-org ; for fearless [organized] leader
module-php ; making php less painful to work with
2015-12-26 10:07:53 +08:00
module-plantuml ; to help show how right I am
2015-10-25 12:39:54 +08:00
module-python ; beautiful is better than ugly
module-regex ; /^[^\s](meaning)[^\n]*/
module-ruby ; <3
2016-01-02 05:21:47 +08:00
module-rust ; Fe2O3; for gamedev and great good
2015-10-25 12:39:54 +08:00
module-sh ; she sells Z-shells by the C XOR
module-swift ; yay, emoji variables!
module-vim ; my mistress
module-web ; for the 2.0'er
2015-11-19 18:55:21 +08:00
;;; Experimental
;; module-crystal ; ruby at the speed of c
2015-11-22 07:03:20 +08:00
;; module-eshell ; for inferior OSes *cough*windows
2015-11-19 18:55:21 +08:00
2015-12-23 16:51:15 +08:00
;;; Specific custom functionality
2015-12-26 10:07:53 +08:00
lib-plugin ; plugin dev for various programs
2015-12-23 16:51:15 +08:00
lib-tmux ; closing the rift between GUI & terminal
2015-12-27 15:54:51 +08:00
lib-demo ; let me demonstrate...
2016-01-02 05:21:47 +08:00
lib-writing ; yes, I write papers and fiction in emacs
;; lib-crm ; emacs and org-mode based CRM
2015-12-23 16:51:15 +08:00
;;; Key bindings & ex commands
2015-10-25 12:39:54 +08:00
my-bindings
my-commands
2015-12-27 15:52:03 +08:00
)))
(narf-init)
2015-10-01 01:47:57 +08:00
2015-06-06 18:40:33 +08:00
;;; I think so Brain...