dotfiles

andersuno dotfiles
git clone git://git.andersuno.nu/dotfiles.git
Log | Files | Refs | README

init.el (10077B)


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