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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

emacs's Issues

line numbers reversed

line numbers are showing in reverse. counting in descending. 0 always being at the bottom. any quick fix for this?

error on window-system in appearence.el

I'm running GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7601) of 2010-10-19 on LENNART-69DE564

With emacs.js just download today (2013.07.07)

appearance.el likes to crash my whole startup with the following error [abridged]:

Debugger entered--Lisp error: (invalid-function (tool-bar-mode -1))
  ((tool-bar-mode -1) (menu-bar-mode -1) (scroll-bar-mode -1))
  (if window-system ((tool-bar-mode -1) (menu-bar-mode -1) (scroll-bar-mode -1)))
  eval-buffer(#<buffer  *load*<2>> nil "d:/Dropbox/Emacs/site-lisp/emacs.js/config/appearance.el" nil t)  ;

(It is not running in the HOME directory; I've explicitly changed init.el to have +home-dir+ point elsewhere.)

The culprit appears to be the following code:

(if window-system
    ((tool-bar-mode -1)
     (menu-bar-mode -1)
     (scroll-bar-mode -1)))

Changing it to

(if window-system
    (progn (tool-bar-mode -1)
           (menu-bar-mode -1)
           (scroll-bar-mode -1)))

allows everything to work. My emaccs-fu is weak, but isn't the progn actually required to execute multiple statements? Or is it some other quirk of my setup? I haven't submitted a pull-request, as I'm never really sure with elisp on windows....

Clone of '[email protected]:magnars/dash.el.git' into submodule path 'libs/dash' failed

Hello,
while trying doing the make, I got the following issue after asking the the

`make
Initializing submodules
Cloning into 'libs/dash'...
The authenticity of host 'github.com (192.30.252.123)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.252.123' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Clone of '[email protected]:magnars/dash.el.git' into submodule path 'libs/dash' failed
`

Any ideas ?

make failing

[damianoneill emacs.js]$ make
Initializing submodules
Submodule 'libs/auto-complete' ([email protected]:azer/auto-complete.git) registered for path 'libs/auto-complete'
Submodule 'libs/coffee-mode' ([email protected]:azer/coffee-mode.git) registered for path 'libs/coffee-mode'
Submodule 'libs/expand-region' (https://github.com/magnars/expand-region.el.git) registered for path 'libs/expand-region'
Submodule 'libs/jade-mode' (https://github.com/brianc/jade-mode.git) registered for path 'libs/jade-mode'
Submodule 'libs/js2-mode' ([email protected]:azer/js2-mode.git) registered for path 'libs/js2-mode'
Submodule 'libs/js2-refactor' (https://github.com/magnars/js2-refactor.el.git) registered for path 'libs/js2-refactor'
Submodule 'libs/mark-multiple' (https://github.com/magnars/mark-multiple.el.git) registered for path 'libs/mark-multiple'
Submodule 'libs/markdown-mode' ([email protected]:defunkt/markdown-mode.git) registered for path 'libs/markdown-mode'
Submodule 'libs/multiple-cursors' (https://github.com/magnars/multiple-cursors.el.git) registered for path 'libs/multiple-cursors'
Submodule 'libs/npm' ([email protected]:azer/npm.el.git) registered for path 'libs/npm'
Submodule 'libs/popup' (https://github.com/auto-complete/popup-el.git) registered for path 'libs/popup'
Submodule 'libs/powerline' (https://github.com/milkypostman/powerline.git) registered for path 'libs/powerline'
Submodule 'libs/smart-forward' (https://github.com/magnars/smart-forward.el.git) registered for path 'libs/smart-forward'
Submodule 'libs/smex' (https://github.com/nonsequitur/smex.git) registered for path 'libs/smex'
Submodule 'libs/undo-tree' (http://www.dr-qubit.org/git/undo-tree.git) registered for path 'libs/undo-tree'
Submodule 'libs/yasnippet' ([email protected]:azer/yasnippet.git) registered for path 'libs/yasnippet'
Submodule 'libs/zencoding' (https://github.com/rooney/zencoding.git) registered for path 'libs/zencoding'
Cloning into 'libs/auto-complete'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Clone of '[email protected]:azer/auto-complete.git' into submodule path 'libs/auto-complete' failed
make: *** [init-submodules] Error 1
[damianoneill emacs.js]$

Make Failling

make
Initializing submodules
Submodule 'libs/async' (https://github.com/jwiegley/emacs-async.git) registered for path 'libs/async'
Submodule 'libs/auto-complete' (https://github.com/azer/auto-complete.git) registered for path 'libs/auto-complete'
...
Cloning into 'libs/zencoding'...
remote: Counting objects: 158, done.
remote: Total 158 (delta 0), reused 0 (delta 0), pack-reused 158
Receiving objects: 100% (158/158), 55.45 KiB | 0 bytes/s, done.
Resolving deltas: 100% (75/75), done.
Checking connectivity... done.
Submodule path 'libs/zencoding': checked out '58e42af182c98cb9941d27cd042d227fbf4e146c'
Unable to checkout '42601d2ff8ff0071a099c50d4afab0ca7945e6af' in submodule path 'libs/yasnippet'
Makefile:28: recipe for target 'init-submodules' failed
make: *** [init-submodules] Error 1

I'm trying to install with your instructions but i couldn't finish the installation.

Warning (initialization): An error occurred while loading `~/.emacs'

Hi. I am running GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2)
of 2013-08-22 on louvi, modified by Debian. After installing emacs.js, I get the following warning each time I run Emacs:


Warning (initialization): An error occurred while loading `/home/valera/.emacs':

Invalid function: (tool-bar-mode -1)

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the `--debug-init' option to view a complete error backtrace.


What can I do to resolve this issue?

make error, maybe because unsupport go

hello guys! I am a web developer, using node.js. so it isn't support go. I have a error as follow when I sue the emacs config. the computer must support go for the emacs config? what can i do?

install go is problem on ubuntu http://studygolang.com/articles/1349

Initializing submodules
 22de0f5792c9140f1da7c7459f30da0863b07e78 libs/async (v1.7)
 8739fe884653cfbd8b268279729d94ca585b786b libs/auto-complete (v1.0-325-g8739fe8)
 48e123db50aac363b2481f1226dbaf33473ef6e3 libs/clojure-mode (2.1.1-421-g48e123d)
 90fffd64b6580c1504b93f562e2a6ad499cceae0 libs/coffee-mode (v0.3.0-133-g90fffd6)
 8a46d3c7c126d3e979f7f9b36867a413694cd8df libs/dash (2.12.1-6-g8a46d3c)
 59f67115263676de5345581216640019975c4fda libs/expand-region (0.10.0-56-g59f6711)
 bb6b90ba3c558988c195048c4c40140b2ee17530 libs/fiplr (0.2.4-18-gbb6b90b)
 849b7346aa9da449b9bdf51367288451fcf19c9e libs/flycheck (0.25.1-155-g849b734)
 9e602f79ea58fe12c6a48ce3c2f749b817ef8c86 libs/git-grep (0.6.3~9)
 1b0cd6af048a8b2074ace14ab51fb6c987beb430 libs/go-errcheck (v1.1.2)
 63e67b187e8fbe6153995a754c60f65217e53142 libs/go-mode (v1.3.1-40-g63e67b1)
 db85a48a7870f46784edc202c780b19e2f65053a libs/gocode (v.20150303-35-gdb85a48)
 38b819b8f132962e24eb6a2cff33d571e848776d libs/grizzl (v0.1.1-27-g38b819b)
 589cdc239555a3eeea5579fe2eb596a7d9c4a1d1 libs/helm (v1.9.1-89-g589cdc2)
 0d0bbf60730d0e33c6362e1fceeaf0e133b1ceeb libs/jade-mode (v1.0.0-34-g0d0bbf6)
 7b430a37d2a77c8bc0f384e11e061e914f2d31de libs/js2-mode (20150909-77-g7b430a3)
 ac3da94a33b714d44d4f0adc670a829fdc522e34 libs/js2-refactor (0.6.1-124-gac3da94)
 e87fe8180b6513450a110b7ad4fed887895720c3 libs/magit (2.4.1-54-ge87fe81)
 f6a53c7c5283d640ae718f4548b0fda78877a375 libs/mark-multiple (heads/master)
 846a2d0db5f6ce71af9a67a793bfd89e751825fe libs/markdown-mode (v2.1-45-g846a2d0)
 a393384b3508e7d8d721e66d2bfb97fa7153dd4f libs/multiple-cursors (1.3.0-77-ga393384)
 59c454c5bbd4e7a20bec716f93fbac9a57c5e41c libs/npm (59c454c)
 004d58c47f6406b6555cf112f8a6eed6114cb63b libs/popup (v0.5.3-10-g004d58c)
 e886f6fe46c7413befb1de3799a185366fd8b39c libs/powerline (2.2-51-ge886f6f)
 a50b494f745e1b028e4945a07fa7cf395981573f libs/relative-line-numbers (heads/master)
 a56f0d0fedf9754e1728067ac868100f2499357d libs/s (1.11.0)
 869c84821cf3e556b380c5c35d8ad62287c4df58 libs/slim (1.1-21-g869c848)
 7b6dbfdbd4b646376a567c70e1a161545431b72b libs/smart-forward (heads/master)
 55aaebe3d793c2c990b39a302eb26c184281c42c libs/smex (3.0-13-g55aaebe)
 412713a0fcedd520d208a7b783fea03d710bcc61 libs/solarized-theme (remotes/origin/unified-57-g412713a)
 867ea7c5d7f3d9bb41127dac364c0fb009adc7bf libs/web-mode (v13.1-6-g867ea7c)
 42601d2ff8ff0071a099c50d4afab0ca7945e6af libs/yasnippet (0.9.1-snapshot-1-g42601d2)
 58e42af182c98cb9941d27cd042d227fbf4e146c libs/zencoding (heads/master)
Installing js2-mode
make[1]: Entering directory '/home/aidan/emacs/libs/js2-mode'
emacs -batch -q --no-site-file -L . -f batch-byte-compile js2-mode.el

In js2-jsx-mode:
js2-mode.el:11591:9:Warning: reference to free variable
    ‘js2-jsx-mode-syntax-table’
js2-mode.el:11591:9:Warning: reference to free variable
    ‘js2-jsx-mode-abbrev-table’

In js2-jump-to-definition:
js2-mode.el:12575:16:Warning: ‘find-tag-marker-ring’ is an obsolete variable
    (as of 25.1); use ‘xref-push-marker-stack’ or ‘xref-pop-marker-stack’
    instead.
emacs -batch -q --no-site-file -L . -f batch-byte-compile js2-imenu-extras.el
make[1]: Leaving directory '/home/aidan/emacs/libs/js2-mode'
make: go: Command not found
Makefile:24: recipe for target 'install-go-tools' failed
make: *** [install-go-tools] Error 127

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.