Skip to content

Opinionated Emacs distro for minimalists.

Notifications You must be signed in to change notification settings

azer/miso-emacs

Repository files navigation

miso-emacs

Opinionated Emacs distro for minimalists.

Writing-mode Programming-mode
Centered writing layout, spell correction, dictionary and pronounciation shortcuts in markdown modes Dark color scheme, LSP mode enabled for programing
Screenshot 2024-05-29 at 10 32 45 Screenshot 2024-05-29 at 10 32 11

Table of Contents

Install

Setup miso-emacs:

$ git clone [email protected]:azer/miso-emacs.git ~/.miso-emacs
$ ln -s .miso-emacs/.emacs .emacs

Install icon fonts;

M-x all-the-icons-install-fonts
M-x nerd-icons-install-fonts

Install ispell:

$ brew install ispell

Bindings

Navigation:

Key Command
M-Up Jump N lines up
M-Down Jump N lines down
M-Left Undo
M-Right Redo
M-o Switch windows w/ ace-window
M-s Search buffer w/ swiper

Programming:

Key Command
M-i e List errors (LSP)
M-i d Toggle debugging mode
M-i r Rename (LSP)
M-i f Execute code action suggested by LSP
M-i j Jump to a symbol in the buffer
M-i i Re-organize imports
M-i g Go-to-imlementation
M-i t Go to type definition
M-i c Find references
M-i - Revert buffer
M-</kbd> Yasnippet
M-RET Trigger + Complete Copilot
M-y Trigger + Complete Copilot

Writing:

Key Command
M-i d Define word at point
M-i t Generate ToC for Markdown
M-i j Jump to a title
M-i w Create and switch to a new scratch buffer
M-i t Google translate at point
M-i p Pronounce at point
M-i = Reset sizing

Project(ile):

Key Command
M-p f Find file in the project
M-p p Switch projects
M-p b Switch to buffer
M-p s Search project
M-p r Search & replace project

Git:

Key Command
M-g s Git status
M-g d Git diff for working tree
M-g b Git diff for the active buffer
M-g - Stash the worktree
M-g = Apply stash
M-i up Push local branch to remote
M-i down Pull from remote branch

Others:

Key Command
M-Backspace Delete backwards
C-w Kill region
C-r Query & replace regexp in the buffer
C-M-r Query replace at cursor thing
M-; Comment/uncomment region
M-c Capitalize the word

Customize

Create a private folder under .miso-emacs and have an init.el file to execute custom Elisp.

Troubleshooting

  • LSP-mode fails to initialize with JSON parsing errors:

Clean up all packages and start Emacs with env variable below:

export LSP_USE_PLISTS=true

Source: https://emacs-lsp.github.io/lsp-mode/page/performance/#use-plists-for-deserialization

About

Opinionated Emacs distro for minimalists.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published