Commands Doom Emacs
Setup doom on Termux
pkg update
pkg upgrade
pkg install emacs ripgrep git nodejs shellcheck
npm install -g marked
git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
~/.config/emacs/bin/doom install
Setup doom on Ubuntu 24
sudo add-apt-repository ppa:ubuntuhandbook1/emacs
sudo apt update
sudo apt-get install emacs ripgrep fd-find -y
git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
~/.config/emacs/bin/doom install
Add an alias in bashrc
nano .bashrc
Add at the end of the file
# Doom alias
alias doom=.config/emacs/bin/doom
Cheatsheet
Use enter after shortcut
SPC . find file
SPC , switch files in buffer
SPC b k Kill buffer
SPC p a Add a folder to projects (muste have .git or .projectile)
SPC p p navigate files into current project
SPC SPC navigate in project files
SPC / wide search in project
SPC h get help
SPC o p open file explorer
SPC f P browse emacs config
Buffer split
CTRL wv Split horizontaly
CTRL ws Split vertical
CTRL w h or j or k or l: move between buffer using vim key
SPC w > or < Resize window horizontaly
SPC w + or - Resize window verticaly
Navigation
CTRL ww Switch buffer
SPC bb or SPC , Display all current buffers in “workspace”
SPC bB Display all buffers opens
SPC bk kill current buffer
SPC b N new empty Buffer
SPC bs save buffer
Dired
SPC . Open dired
C Copy file
d Mark for deletion
x Execute marked actions
t Invert selections
R Move file
m Mark file
u Unmark file
i Rename file
Word nav
SHIFT p paste content
Org mode
ALT L or H: Promote or Demote in bullet structure
Org Roam
C nf Search nodes
C cni Insert node
“
TODO
Cc Cd Choose a deadline date
Cc Cs Choose a scheduled date
Cc Cx Ci Start a clock
Cc Cx Co Stop a clock
Ressources
Getting Started with Doom Emacs The Ultimate Doom Emacs Cheatsheet Doom Emacs Workflows
- Taches **** TODO Pouvoir lister issues github d’un projet direct dans
*** Shortcuts
U : Undo C r : Redo
**** Time Tracking
Cc Cx Ci Start CLock
Cc Cx Co Stop Clock
SPC m c R or run :org-clock-report Cc Cx Cr Time report
**** File explorer SPC o p Ouvrir treemax sur le coté (nécessite de l’avoir activé dans la conf) SPC f f Open in current dir
**** Todo
S-UP Increase priority: S-UP (Shift + Up arrow) S-DOWN Decrease priority: S-DOWN (Shift + Down arrow) Cc Cd Set deadline SPC m t d Set to DONE SPC m t task state selector [%] on title to display percent [/] to display task number
**** Buffers
SPC b n next buffer SPC w v window split vertically SPC w s window split horizontally SPC w w to switch windows SPC w q to close window, frame, quit EMACS if last frame
**** Code snippet **** Outlines
S-TAB close all outline (S is Shift) zR open all folds
**** Agenda (if not working enable calendar)
Press C-c a to open the agenda dispatcher
Then press:
a for the weekly agenda
t for all TODO items
m to search by tags
**** Search SPC s p : Rechercher dans les fichiers
**** Manipuler texte
Alt + k ou Alt + j: Déplacer ligne de texte vers le haut ou vers le bas C x h : selectionne tout le texte d’un coup **** Terminal Mx(Alt+x) eshell **** Settings SPC f p Ouvrir explorer fichier sur conf emacs **** Minimap **** Magit SPC g g Open magit s stage selected commit S stage all u unstage commit U unstage all c c create commit + C c C c to apply commit in buffer P p push remote F p pull remote f f fetch remote **** Calendar **** Roam SPC n r i Insert node SPC n r f Find node C o Back to previous location * **** Zoom Ctrl trackpad (vers au ou bas) : Zoom Dezoom buffer text size
**** Ressources https://emacs-lsp.github.io/lsp-mode/page/troubleshooting/