dotfiles

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

init.el (9836B)


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