Sunday, August 31, 2025

Learning Doom Emacs

 I have been trying to learn to use Emacs. 

Its a light weight, yet robust, minimalist software suite, that is modular and configurable. Here is I am listing out notes in a sort of tutorial for reference purposes.


   ■ Doom Emacs Comprehensive Tutorial

1. What is Doom Emacs?
Doom Emacs is a configuration framework for GNU Emacs that prioritizes speed, modular
configuration, and Vim-like editing.
It combines Emacs' extensibility with modern defaults, making it a powerful IDE and productivity
system.

2. Installation
Requirements: GNU Emacs 27.1+, Git, and build tools.
Installation:
git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.emacs.d
~/.emacs.d/bin/doom install
Configuration files:
~/.doom.d/init.el → Enable/disable modules
~/.doom.d/config.el → Personal settings
~/.doom.d/packages.el→ Extra packages
Apply changes: doom sync

3. Configuration
init.el: enable/disable modules
config.el: user settings (fonts, keybinds, org dir, etc.)
packages.el: declare extra packages
Example (init.el):
(doom! :completion company vertico
:ui doom modeline vc-gutter
:editor (evil +everywhere) format
:tools magit lsp docker
:lang python javascript org markdown)

4. Available Modules
:completion → company, vertico, ivy, helm
:ui → doom, modeline, treemacs
:editor → evil, multiple-cursors, parinfer
:tools → magit, lsp, docker, debugger
:lang → python, go, rust, javascript, org, latex
:app → rss, calendar, emms

5. Beginner Workflow
1. Open a project → SPC p p
2. Edit code → gd (go to def), K (docs), SPC c l (comment)
3. Search → SPC / (project), SPC s s (buffer)
4. Git → SPC g g (Magit), s (stage), c c (commit), P p (push)
5. Org mode → SPC m t (TODO), SPC m s (schedule), SPC o A (agenda)

6. Cheat Sheet (Quick)
Leader = SPC
Files & Projects: SPC f f (find), SPC p p (project)
Buffers & Windows: SPC b b (switch), SPC w / (split)
Editing: dd (delete), yy (yank), gd (def), SPC c l (comment)
Search: SPC / (project), SPC s s (buffer)
Git: SPC g g (status), c c (commit), P p (push)
Org: SPC m t (TODO), SPC m s (schedule), SPC o A (agenda)



Dotfiles manager Project

Check out my current project!  Dotfiles all in one manager Dotfiles Manager All-in-One (Version 1.0) Overview Dotfiles Manager All-in-One ...