The editor: le#
le is a Spacemacs work-alike. It also answers to vi, vim, nvim, emacs, emacsclient, spacemacs and edit.
Read from your configuration#
le reads ~/.spacemacs and ~/.spacemacs.d/{editing,keybindings}.el with an Emacs Lisp reader, extracting define-key, global-set-key, evil-define-key, setq(-default), defalias and defun forms, including inside with-eval-after-load.
| From your config | Effect in le |
|---|---|
; → evil-ex (normal, visual) | ; opens the ex prompt |
C-h/j/k/l → evil-window-* | window navigation; with the tmux layer, at an edge it moves to the neighbouring tmux pane |
,w → delete-trailing-whitespace | normal state |
,q → sort-lines, ,ah → align-repeat | visual state (your align-repeat defun is implemented) |
insert C-h backspace, C-w delete word, C-n/C-p lines | insert state |
C-y unbound, C-y , → my-tab-command | indent + yasnippet expansion (snippets from ~/.emacs.d/snippets) |
evilified / ? n N, Buffer-menu k | magit, dired, help and list buffers |
company C-n/C-p/C-w/C-h, C-d o/C-d t (EEx tags) | completion popup |
magit C-j/C-k, / n N, Z stash, zt/zz | SPC g s status buffer |
evil-escape-key-sequence "jk", delay 0.4 | jk leaves insert state |
display-line-numbers-type 'relative | relative line numbers |
display-fill-column-indicator-column 101, fill-column 79 | indicator at column 101 |
case-fold-search nil | case-sensitive search |
before-save-hook delete-trailing-whitespace | applied on save |
defalias 'sl 'sort-lines | :sl / M-x sl |
dotspacemacs-themes '(monokai …) | Monokai palette |
The full list of what was loaded is on the key bindings page, or keys editor inside Lepton.
Spacemacs defaults#
- the
SPCleader with which-key popups:SPC f f/sfiles,SPC b b/dbuffers,SPC w /,-,d,mwindows,SPC g sgit,SPC p fproject files,SPC s s/SPC /search,SPC t n/rline numbers,SPC x a ralign,SPC q qquit,SPC SPCM-x,SPC ?bindings; - helm-style candidate lists;
- evil operators, motions and text objects with counts and
., visual modes, undo/redo, yank and paste, and splits; - ex commands:
:w :q :wq :e :sp :vsp :s/// :sort :!cmd :r !cmd.
Bindings that name commands le doesn't implement are listed as "not supported" by keys and SPC h d b, never silently dropped.
Git from the editor#
SPC g s opens a magit-style status buffer: stage with s, unstage with u, commit with c c, push with P p, pull with F p, and stash with Z. See git and GitHub.
Commands on this page#
| Command | What it does | Usage |
|---|---|---|
le | the Lepton editor (Spacemacs keybindings from your dotfiles) | le [FILE...] |