dotfiles

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

init.el (9968B)


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