Update emacs config

This commit is contained in:
mokou 2021-11-17 17:14:37 +01:00
parent e38b71cca9
commit d32515c5d3
2 changed files with 147 additions and 158 deletions

View file

@ -35,12 +35,6 @@
(add-hook 'typescript-mode-hook 'prettier-js-mode) (add-hook 'typescript-mode-hook 'prettier-js-mode)
(add-hook 'typescript-tsx-mode-hook 'prettier-js-mode) (add-hook 'typescript-tsx-mode-hook 'prettier-js-mode)
;; Make Monky communicate via cmdserver
(setq monky-process-type 'cmdserver)
;; Map SPC-g-h to monky-status
(map! :map magit-mode-map :leader "g h" 'monky-status)
;; Enable Mercurial support for git-gutter ;; Enable Mercurial support for git-gutter
(setq git-gutter:handled-backends '(git hg)) (setq git-gutter:handled-backends '(git hg))

View file

@ -1,195 +1,190 @@
;;; init.el -*- lexical-binding: t; -*- ;;; init.el -*- lexical-binding: t; -*-
;; Copy this file to ~/.doom.d/init.el or ~/.config/doom/init.el ('doom ;; This file controls what Doom modules are enabled and what order they load
;; quickstart' will do this for you). The `doom!' block below controls what ;; in. Remember to run 'doom sync' after modifying it!
;; modules are enabled and in what order they will be loaded. Remember to run
;; 'doom refresh' after modifying it. ;; NOTE Press 'SPC h d h' (or 'C-h d h' for non-vim users) to access Doom's
;; documentation. There you'll find a "Module Index" link where you'll find
;; a comprehensive list of Doom's modules and what flags they support.
;; NOTE Move your cursor over a module's name (or its flags) and press 'K' (or
;; 'C-c c k' for non-vim users) to view its documentation. This works on
;; flags as well (those symbols that start with a plus).
;; ;;
;; More information about these modules (and what flags they support) can be ;; Alternatively, press 'gd' (or 'C-c c d') on a module to browse its
;; found in modules/README.org. ;; directory (for easy access to its source code).
(doom! :input (doom! :input
;;chinese ;;chinese
;;japanese ;;japanese
;;(layout +azerty +bepo) ;;layout ; auie,ctsrnm is the superior home row
:completion :completion
(company +childframe) company ; the ultimate code completion backend
;;helm ;;helm ; the *other* search engine for love and life
;;ido ;;ido ; the other *other* search engine...
;;ivy ;;ivy ; a search engine for love and life
(vertico +icons) vertico ; the search engine of the future
:ui :ui
;;deft ;;deft ; notational velocity for Emacs
doom doom ; what makes DOOM look the way it does
doom-dashboard doom-dashboard ; a nifty splash screen for Emacs
;;doom-quit doom-quit ; DOOM quit-message prompts when you quit Emacs
(emoji +github +unicode) ;;(emoji +unicode) ; 🙂
hl-todo hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
;;hydra ;;hydra
indent-guides indent-guides ; highlighted indent columns
ligatures ligatures ; ligatures and symbols to make your code pretty again
minimap minimap ; show a map of the code on the side
(modeline +light) (modeline +light) ; snazzy, Atom-inspired modeline, plus API
nav-flash nav-flash ; blink cursor line after big motions
;;neotree ;;neotree ; a project drawer, like NERDTree for vim
ophints ophints ; highlight the region an operation acts on
(popup +defaults) (popup +defaults) ; tame sudden yet inevitable temporary windows
;;tabs ;;tabs ; a tab bar for Emacs
;;treemacs ;;treemacs ; a project drawer, like neotree but cooler
;;unicode ;;unicode ; extended unicode support for various languages
vc-gutter vc-gutter ; vcs diff in the fringe
vi-tilde-fringe vi-tilde-fringe ; fringe tildes to mark beyond EOB
window-select window-select ; visually switch windows
workspaces workspaces ; tab emulation, persistence & separate workspaces
;;zen ;;zen ; distraction-free coding or writing
:editor :editor
(evil +everywhere) (evil +everywhere); come to the dark side, we have cookies
;; file-templates ;;file-templates ; auto-snippets for empty files
fold fold ; (nigh) universal code folding
;;(format +onsave) ;;(format +onsave) ; automated prettiness
;;god ;;god ; run Emacs commands without modifier keys
;;lispy ;;lispy ; vim for lisp, for people who don't like vim
;;multiple-cursors ;;multiple-cursors ; editing in many places at once
;;objed ;;objed ; text object editing for the innocent
;;parinfer ;;parinfer ; turn lisp into python, sort of
rotate-text rotate-text ; cycle region at point between text candidates
snippets snippets ; my elves. They type so I don't have to
;;word-wrap ;;word-wrap ; soft wrapping with language-aware indent
:emacs :emacs
(dired (dired +icons) ; making dired pretty [functional]
+ranger electric ; smarter, keyword-based electric-indent
+icons ;;ibuffer ; interactive buffer management
) undo ; persistent, smarter undo for your inevitable mistakes
electric vc ; version-control and Emacs, sitting in a tree
;;ibuffer
undo
vc
:term :term
;;eshell ;;eshell ; the elisp shell that works everywhere
;;shell ;;shell ; simple shell REPL for Emacs
;;term ;;term ; basic terminal emulator for Emacs
;;vterm ;;vterm ; the best terminal emulation in Emacs
:checkers :checkers
syntax syntax ; tasing you for every semicolon you forget
;;spell ;;(spell +flyspell) ; tasing you for misspelling mispelling
;;grammar ;;grammar ; tasing grammar mistake every you make
:tools :tools
;;ansible ;;ansible
;;debugger ;;debugger ; FIXME stepping through code, to help you add bugs
;;direnv ;;direnv
docker docker
editorconfig editorconfig ; let someone else argue about tabs vs spaces
;;ein ;;ein ; tame Jupyter notebooks with emacs
eval (eval +overlay) ; run code, run (also, repls)
;;gist ;;gist ; interacting with github gists
(lookup lookup ; navigate your code and its documentation
+docsets) (lsp +peek) ; M-x vscode
(lsp +peek) magit ; a git porcelain for Emacs
magit make ; run make tasks from Emacs
;;make ;;pass ; password manager for nerds
;;pass ;;pdf ; pdf enhancements
;;pdf ;;prodigy ; FIXME managing external services & code builders
;;prodigy rgb ; creating color strings
rgb ;;taskrunner ; taskrunner for all your projects
;;taskrunner ;;terraform ; infrastructure as code
;;terraform ;;tmux ; an API for interacting with tmux
;;tmux ;;upload ; map local to remote projects via ssh/ftp
;;upload
:os :os
(:if IS-MAC macos) (:if IS-MAC macos) ; improve compatibility with macOS
tty ;;tty ; improve the terminal Emacs experience
:lang :lang
;;agda ;;agda ; types of types of types of types...
;;beancount ;;beancount ; mind the GAAP
;;cc ;;cc ; C > C++ == 1
;;clojure ;;clojure ; java with a lisp
;;common-lisp ;;common-lisp ; if you've seen one lisp, you've seen them all
;;coq ;;coq ; proofs-as-programs
;;crystal ;;crystal ; ruby at the speed of c
;;csharp ;;csharp ; unity, .NET, and mono shenanigans
;;dart data ; config/data formats
data ;;(dart +flutter) ; paint ui and not much else
(elixir +lsp) ;;dhall
;;elm (elixir +lsp) ; erlang done right
emacs-lisp ;;elm ; care for a cup of TEA?
;;erlang emacs-lisp ; drown in parentheses
;;ess erlang ; an elegant language for a more civilized age
;;ess ; emacs speaks statistics
;;factor ;;factor
;;faust ;;faust ; dsp, but you get to keep your soul
;;fsharp ;;fsharp ; ML stands for Microsoft's Language
;;fstar ;;fstar ; (dependent) types and (monadic) effects and Z3
;;gdscript ;;gdscript ; the language you waited for
;;(go +lsp) ;;(go +lsp) ; the hipster dialect
;;(haskell +lsp) ;;(haskell +lsp) ; a language that's lazier than I am
;;hy ;;hy ; readability of scheme w/ speed of python
;;idris ;;idris ; a language you can depend on
;;(java +meghanada) json ; At least it ain't XML
(javascript +lsp) ;;(java +meghanada) ; the poster child for carpal tunnel syndrome
json ;;javascript ; all(hope(abandon(ye(who(enter(here))))))
;;julia ;;julia ; a better, faster MATLAB
;;kotlin ;;kotlin ; a better, slicker Java(Script)
;;latex ;;latex ; writing papers in Emacs has never been so fun
;;lean ;;lean ; for folks with too much to prove
;;factor ;;ledger ; be audit you can be
;;ledger ;;lua ; one-based indices? one-based indices
;;lua markdown ; writing docs for people to ignore
markdown ;;nim ; python + lisp at the speed of c
;;nim ;;nix ; I hereby declare "nix geht mehr!"
;;nix ;;ocaml ; an objective camel
;;ocaml ;;org ; organize your plain life in plain text
;;(org +brain +dragndrop +gnuplot +hugo +ipython +journal +jupyter +noter +pandoc +pomodoro +present +pretty +roam) ;;php ; perl's insecure younger brother
;;php ;;plantuml ; diagrams for confusing people more
;;plantuml ;;purescript ; javascript, but functional
;;purescript ;;python ; beautiful is better than ugly
;;python ;;qt ; the 'cutest' gui framework ever
;;qt ;;racket ; a DSL for DSLs
;;racket ;;raku ; the artist formerly known as perl6
;;raku ;;rest ; Emacs as a REST client
;;rest ;;rst ; ReST in peace
;;ruby ;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
(rust +lsp) (rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
;;scala ;;scala ; java, but good
;;scheme ;;(scheme +guile) ; a fully conniving family of lisps
sh sh ; she sells {ba,z,fi}sh shells on the C xor
;;sml ;;sml
;;solidity ;;solidity ; do you need a blockchain? No.
;;swift ;;swift ; who asked for emoji variables?
;;terra ;;terra ; Earth and Moon in alignment for performance.
web web ; the tubes
yaml yaml ; JSON, but readable
;;zig ;;zig ; C, but simpler
:email :email
;;(mu4e +gmail) ;;(mu4e +org +gmail)
;;notmuch ;;notmuch
;;(wanderlust +gmail) ;;(wanderlust +gmail)
;; Applications are complex and opinionated modules that transform Emacs
;; toward a specific purpose. They may have additional dependencies and
;; should be loaded late.
:app :app
;;calendar ;;calendar
;;emms ;;emms
;;everywhere ;;everywhere ; *leave* Emacs!? You must be joking
;;irc ;;irc ; how neckbeards socialize
;;(rss +org) ;;(rss +org) ; emacs as an RSS reader
;;twitter ;;twitter ; twitter client https://twitter.com/vnought
:config :config
;; For literate config users. This will tangle+compile a config.org
;; literate config in your `doom-private-dir' whenever it changes.
;;literate ;;literate
;; The default module sets reasonable defaults for Emacs. It also
;; provides a Spacemacs-inspired keybinding scheme and a smartparens
;; config. Use it as a reference for your own modules.
(default +bindings +smartparens)) (default +bindings +smartparens))