leodcs / emacs.d

My emacs configuration directory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Emacs

My Emacs configuration directory to use on Ruby on Rails and Javascript development.

demonstration.png

Requirements

  • Vim keybindings knowledge. This is mandatory because I use a vim emulator called evil (hate that name btw). If you're not familiar with vim, go ahead and launch vimtutor on the terminal.
  • silversearcher-ag
  • Emacs 26+
  • rubocop (for ruby files)

Quick Start

$ git clone https://github.com/leodcs/emacs.d ~/.emacs.d

Open Emacs and run:

  • M-x all-the-icons-install-fonts
  • M-x projectile-discover-projects-in-directory
  • Press C-c p p to find your newly discovered project.

Useful keybindings

M - Alt
C - Control
s - Super (command on macOS)
S - Shift
SPC - Space
RET - Return

Keybinding Action
s-p Search files in project
s-e Toggle neotree plugin
s-F Search text in project (auto includes selected text in visual mode)
s-n Create an untitled buffer
s-r Rename current buffer
s-k Kill current buffer
s-> Multiple cursor on next occurrence
M-o Switch windows
s-RET Switch to buffer
s-<up> Move text up
s-<down> Move text down
s-w Close current window
s-W Delete other windows
s-S Rubocop autocorrect on current buffer file

Search and replace

Run s-F, search for text and press C-c C-o
To disable read-only mode press C-x C-q
Do your changes and finally press C-c C-c to confirm

Plugins documentations

Thanks

Many thanks to @otavioschwanck for providing me with a setup repo for using Emacs when I was looking for one. Check it out at https://github.com/otavioschwanck/emacs_on_rails

About

My emacs configuration directory


Languages

Language:Emacs Lisp 97.0%Language:YASnippet 3.0%