Giter VIP home page Giter VIP logo

emacs's Introduction

Azer's Emacs Setup

Ready-to-use Emacs setup for JavaScript and Go programming.

Install

$ cd ~
$ git clone https://github.com/azer/emacs
$ cd emacs
$ make

Backup your existing configuration:

$ mkdir ~/emacsbak && mv ~/.emacs* ~/emacsbak/.

And enable this emacs distro:

$ ln -s ~/emacs/init.el ~/.emacs

To check for updates;

$ make update

What's included?

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

* 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

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

emacs's People

Contributors

jclosure avatar lennel avatar tianhao avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.