https://github.com/azer/emacs
Ready-to-use Emacs Setup for JavaScript and Go
https://github.com/azer/emacs
Last synced: about 1 year ago
JSON representation
Ready-to-use Emacs Setup for JavaScript and Go
- Host: GitHub
- URL: https://github.com/azer/emacs
- Owner: azer
- Created: 2013-02-18T06:01:14.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2018-08-23T12:44:10.000Z (almost 8 years ago)
- Last Synced: 2025-03-27T23:26:02.320Z (about 1 year ago)
- Language: Emacs Lisp
- Homepage:
- Size: 210 KB
- Stars: 228
- Watchers: 22
- Forks: 28
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Azer's Emacs Setup
Ready-to-use Emacs setup for JavaScript and Go programming.

## Install
```bash
$ cd ~
$ git clone https://github.com/azer/emacs
$ cd emacs
$ make
```
Backup your existing configuration:
```bash
$ mkdir ~/emacsbak && mv ~/.emacs* ~/emacsbak/.
```
And enable this emacs distro:
```
$ ln -s ~/emacs/init.el ~/.emacs
```
To check for updates;
```bash
$ make update
```
## What's included?
* [npm.el](http://github.com/azer/npm.el)
* [js2-mode](https://github.com/mooz/js2-mode)
* [go-mode](https://github.com/dominikh/go-mode.el)
* [gocode](https://github.com/nsf/gocode)
* [errcheck](https://github.com/kisielk/errcheck)
* [auto-complete](https://github.com/auto-complete/auto-complete)
* [yasnippet](https://github.com/capitaomorte/yasnippet)
* [zencoding](https://github.com/rooney/zencoding.git)
* [js2-refactor](https://github.com/magnars/js2-refactor.el)
* [js-comint](http://js-comint-el.sourceforge.net/)
* [expand-region](https://github.com/magnars/expand-region.el)
* [smart-forward](https://github.com/magnars/smart-forward.el)
* powerline
* jade-mode
* zsh
* smex
* undo-tree
* markdown-mode
## Usage
### Arrow Buttons
* **Left:** Undo
* **Right:** Redo
* **Up:** Jump to up
* **Down:** Jump to down
### NPM
* **M-n n:** Create a new NodeJS Project
* **M-n d:** Install and save new dependency
* **M-n e:** Install and save new development dependency
* **M-n s:** Search NPM
* **M-n i:** Run `npm install` on current directory
* **M-n p:** Publish the library on NPM
* **M-n t:** Run the test command
* **M-n v:** Make a new NPM version
* **M-n b:** Release new patch version
* **M-n m:** Release new minor version
* **M-n a:** Release new major version
### Go
* **C-c C-d:** Describe the code
* **C-c C-j:** Jump to the definition of the code
* **C-c C-a:** Add new import
* **C-c C-r:** Remove unused imports
* **C-c i:** Go to imports
* **C-c m:** Run error check
* **C-M a:** Go to the beginning of the function
* **C-M e:** Go to the end of the function
* **C-c d:** Godoc at point
### Git
* **M-g s:** git status
* **M-g l:** git log
* **M-g f:** git pull
* **M-g p:** git push
### Others
```bash
* M-i ido-goto-symbol
* C-c C-m Start Refactoring. More info: https://github.com/magnars/js2-refactor.el
* m-g n run-js
* m-g m js-send-region
* m-s s er/expand-region
* C-j zencoding-expand-yas
* up jump to up
* down jump to down
* left undo
* right redo
* m-r replace-regexp
* m-g g go to line
* m-down go to forward line
* m-up go to previous line
* C-x \ align=
* m-c run-last-command
* m-g c run-new-command
* m-z zsh
```
## Snippets
* [JavaScript snippets](https://github.com/azer/yasnippet/blob/master/snippets/js2-mode)
* [Go Snippets](https://github.com/azer/yasnippet/tree/master/snippets/go-mode)
## Troubleshooting
* js2-mode not working? Recompile js2-mode: `make install-js2mode`
## Notes
* If you have `magit` installed on your system, enable related config from profiles/default.el
* If you have `emacs-w3m` installed on your system, enable related config from profiles/default.el