Emacs - An extensible, customizable, free/libre text editor
I'm a vim
user but I'm learning Clojure now, so I decided to give emacs
a try.
If you have no idea what Emacs is, I recommend you to check these guide before continue
Key Prefix meaning:
C
:Control
M
:Alt
/Option
s
:Command
/Window
C-c
: HoldControl
andc
You don't have to remember all the command, the list below is enough:
M-x
: execute extended command.C-x C-c
: quit emacsC-g
: cancel, likeEsc
in vimC-x C-f
: open fileC-x b
: switch buffers
- GUI version
- or
brew install emacs
Download the config file and save it in your home dir ~/.emacs
curl https://raw.githubusercontent.com/felixvo/vimtoemacs/master/init.el>~/.emacs
Then open your emacs
. Hopefully, you will see the UI below
basiclly this step will tell emacs
where is your projects
To add a project to Projectile's list of known projects, open a file in the project. If you have a projects directory, you can tell Projectile about all of the projects in it with the command
M-x
projectile-discover-projects-in-directory
Projectile Docs
- window management the vim way
:vs
horizontal split:sp
vertical splitC-w C-w
orC-h/j/k/l
: switch around window:close
orC-x 0
: close current windowC-x 1
: close other windows
- manage open buffers
C-p
: show list buffer and recent files (helm-mini window)C-x C-b
: list buffers-p
(command+p): list buffer in project:bd
: close buffer:bn
/:bp
: next/previous buffer ![emacs buffer](images/find buffers.png)
- switch project
- find files in project
- grep in project
- file explorer
- helm mini
you can click on projectile
in the status bar below for more commands
highly recommend you to check out the links below for more details