all repos — dotfiles @ e292d263a526f7596a143935d1f8c0942907df25

personal dotfiles

doom-emacs/.config/doom/init.el (view raw)

  1;;; init.el -*- lexical-binding: t; -*-
  2
  3;; This file controls what Doom modules are enabled and what order they load
  4;; in. Remember to run 'doom sync' after modifying it!
  5
  6;; NOTE Press 'SPC h d h' (or 'C-h d h' for non-vim users) to access Doom's
  7;;      documentation. There you'll find a "Module Index" link where you'll find
  8;;      a comprehensive list of Doom's modules and what flags they support.
  9
 10;; NOTE Move your cursor over a module's name (or its flags) and press 'K' (or
 11;;      'C-c c k' for non-vim users) to view its documentation. This works on
 12;;      flags as well (those symbols that start with a plus).
 13;;
 14;;      Alternatively, press 'gd' (or 'C-c c d') on a module to browse its
 15;;      directory (for easy access to its source code).
 16
 17(doom! :input
 18       ;;chinese
 19       ;;japanese
 20       ;;layout            ; auie,ctsrnm is the superior home row
 21
 22       :completion
 23       company           ; the ultimate code completion backend
 24       ;;helm              ; the *other* search engine for love and life
 25       ;;ido               ; the other *other* search engine...
 26       ivy               ; a search engine for love and life
 27
 28       :ui
 29       ;;deft              ; notational velocity for Emacs
 30       doom              ; what makes DOOM look the way it does
 31       doom-dashboard    ; a nifty splash screen for Emacs
 32       ;;doom-quit         ; DOOM quit-message prompts when you quit Emacs
 33       (emoji +unicode)  ; 🙂
 34       hl-todo           ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
 35       ;;hydra
 36       ;;indent-guides     ; highlighted indent columns
 37       (ligatures +extra)         ; ligatures and symbols to make your code pretty again
 38       ;;minimap           ; show a map of the code on the side
 39       modeline          ; snazzy, Atom-inspired modeline, plus API
 40       ;;nav-flash         ; blink cursor line after big motions
 41       ;;neotree           ; a project drawer, like NERDTree for vim
 42       ophints           ; highlight the region an operation acts on
 43       (popup +defaults)   ; tame sudden yet inevitable temporary windows
 44       ;;tabs              ; a tab bar for Emacs
 45       treemacs          ; a project drawer, like neotree but cooler
 46       unicode           ; extended unicode support for various languages
 47       vc-gutter         ; vcs diff in the fringe
 48       vi-tilde-fringe   ; fringe tildes to mark beyond EOB
 49       window-select     ; visually switch windows
 50       workspaces        ; tab emulation, persistence & separate workspaces
 51       zen               ; distraction-free coding or writing
 52
 53       :editor
 54       (evil +everywhere); come to the dark side, we have cookies
 55       file-templates    ; auto-snippets for empty files
 56       fold              ; (nigh) universal code folding
 57       ;;(format +onsave)  ; automated prettiness
 58       ;;god               ; run Emacs commands without modifier keys
 59       ;;lispy             ; vim for lisp, for people who don't like vim
 60       ;;multiple-cursors  ; editing in many places at once
 61       ;;objed             ; text object editing for the innocent
 62       ;;parinfer          ; turn lisp into python, sort of
 63       ;;rotate-text       ; cycle region at point between text candidates
 64       snippets          ; my elves. They type so I don't have to
 65       ;;word-wrap         ; soft wrapping with language-aware indent
 66
 67       :emacs
 68       dired             ; making dired pretty [functional]
 69       electric          ; smarter, keyword-based electric-indent
 70       ;;ibuffer         ; interactive buffer management
 71       undo              ; persistent, smarter undo for your inevitable mistakes
 72       vc                ; version-control and Emacs, sitting in a tree
 73
 74       :term
 75       eshell            ; the elisp shell that works everywhere
 76       ;;shell             ; simple shell REPL for Emacs
 77       ;;term              ; basic terminal emulator for Emacs
 78       vterm             ; the best terminal emulation in Emacs
 79
 80       :checkers
 81       syntax              ; tasing you for every semicolon you forget
 82       ;;(spell +flyspell) ; tasing you for misspelling mispelling
 83       ;;grammar           ; tasing grammar mistake every you make
 84
 85       :tools
 86       ;;ansible
 87       ;;debugger          ; FIXME stepping through code, to help you add bugs
 88       ;;direnv
 89       ;;docker
 90       ;;editorconfig      ; let someone else argue about tabs vs spaces
 91       ;;ein               ; tame Jupyter notebooks with emacs
 92       (eval +overlay)     ; run code, run (also, repls)
 93       ;;gist              ; interacting with github gists
 94       lookup              ; navigate your code and its documentation
 95       lsp               ; M-x vscode
 96       magit             ; a git porcelain for Emacs
 97       make              ; run make tasks from Emacs
 98       pass              ; password manager for nerds
 99       ;;pdf               ; pdf enhancements
100       ;;prodigy           ; FIXME managing external services & code builders
101       rgb               ; creating color strings
102       ;;taskrunner        ; taskrunner for all your projects
103       ;;terraform         ; infrastructure as code
104       ;;tmux              ; an API for interacting with tmux
105       ;;upload            ; map local to remote projects via ssh/ftp
106
107       :os
108       ;;(:if IS-MAC macos)  ; improve compatibility with macOS
109       ;;tty               ; improve the terminal Emacs experience
110
111       :lang
112       ;;agda              ; types of types of types of types...
113       ;;beancount         ; mind the GAAP
114       cc                ; C > C++ == 1
115       ;;clojure           ; java with a lisp
116       ;;common-lisp       ; if you've seen one lisp, you've seen them all
117       ;;coq               ; proofs-as-programs
118       ;;crystal           ; ruby at the speed of c
119       ;;csharp            ; unity, .NET, and mono shenanigans
120       data              ; config/data formats
121       ;;(dart +flutter)   ; paint ui and not much else
122       ;;elixir            ; erlang done right
123       ;;elm               ; care for a cup of TEA?
124       emacs-lisp        ; drown in parentheses
125       ;;erlang            ; an elegant language for a more civilized age
126       ;;ess               ; emacs speaks statistics
127       ;;factor
128       ;;faust             ; dsp, but you get to keep your soul
129       ;;fsharp            ; ML stands for Microsoft's Language
130       ;;fstar             ; (dependent) types and (monadic) effects and Z3
131       ;;gdscript          ; the language you waited for
132       (go +lsp)         ; the hipster dialect
133       (haskell +dante)  ; a language that's lazier than I am
134       ;;hy                ; readability of scheme w/ speed of python
135       ;;idris             ; a language you can depend on
136       json              ; At least it ain't XML
137       ;;(java +meghanada) ; the poster child for carpal tunnel syndrome
138       javascript        ; all(hope(abandon(ye(who(enter(here))))))
139       ;;julia             ; a better, faster MATLAB
140       ;;kotlin            ; a better, slicker Java(Script)
141       latex             ; writing papers in Emacs has never been so fun
142       ;;lean              ; for folks with too much to prove
143       ;;ledger            ; be audit you can be
144       ;;lua               ; one-based indices? one-based indices
145       markdown          ; writing docs for people to ignore
146       ;;nim               ; python + lisp at the speed of c
147       ;;nix               ; I hereby declare "nix geht mehr!"
148       ;;ocaml             ; an objective camel
149       (org               ; organize your plain life in plain text
150        +pretty
151        +dragndrop
152        +noter
153        +jupyter
154        +pandoc
155        +gnuplot
156        +present
157        +roam)
158       ;;php               ; perl's insecure younger brother
159       ;;plantuml          ; diagrams for confusing people more
160       ;;purescript        ; javascript, but functional
161       (python +lsp +pyright)             ; beautiful is better than ugly
162       ;;qt                ; the 'cutest' gui framework ever
163       ;;racket            ; a DSL for DSLs
164       ;;raku              ; the artist formerly known as perl6
165       ;;rest              ; Emacs as a REST client
166       ;;rst               ; ReST in peace
167       (ruby +rails)     ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
168       ;;rust              ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
169       ;;scala             ; java, but good
170       ;;(scheme +guile)   ; a fully conniving family of lisps
171       sh                ; she sells {ba,z,fi}sh shells on the C xor
172       ;;sml
173       ;;solidity          ; do you need a blockchain? No.
174       ;;swift             ; who asked for emoji variables?
175       ;;terra             ; Earth and Moon in alignment for performance.
176       web               ; the tubes
177       yaml              ; JSON, but readable
178       ;;zig               ; C, but simpler
179
180       :email
181       (mu4e +gmail)
182       ;;notmuch
183       ;;(wanderlust +gmail)
184
185       :app
186       ;;calendar
187       ;;emms
188       ;;everywhere        ; *leave* Emacs!? You must be joking
189       ;;irc               ; how neckbeards socialize
190       ;;(rss +org)        ; emacs as an RSS reader
191       ;;twitter           ; twitter client https://twitter.com/vnought
192
193       :config
194       ;;literate
195       (default +bindings +smartparens))