Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
My Emacs's config
Emacs Lisp TeX Groff Makefile R Shell Other
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
init
package
requirements
snippets @ 53be147
templates
.gitignore
.gitmodules
Makefile
README.md
init.el

README.md

Emacs configuration

Features

  • Python (Elpy)
  • Java (Auto Java Complete)
  • Javascript
  • LaTeX (AUCTeX)
  • Lisp (SLIME)
  • Markdown
  • Org mode
  • R (ESS)
  • Git (Magit)
  • Auto complete (Auto Complete and YASnippet)
  • On-the-fly syntax checks (FlyMake)

Requirements

  • emacs >= 24.3
  • xclip
  • ack
  • r (ESS)
  • texlive (AUCTeX)
  • git (Magit)
  • clisp (SLIME)
  • Python libraries listed in requirements/python-package.txt (Python 2) and requirements/python3-package.txt (Python 3) (Elpy)

Optional requirements

Setting up

  1. Clone this repository to your $HOME/.emacs.d directory:
$ git clone --recursive https://github.com/jlhg/emacs.d ~/.emacs.d
  1. After the cloning, create a symbolic link to ~/init.el:
$ ln -s ~/.emacs.d/init.el ~/
  1. Compilation:
$ cd ~/.emacs.d/
$ make
  1. Install the Python libraries required for python-mode:
# In Python 2.7 environment
$ pip install -r ~/.emacs.d/requirements/python-package.txt

# In Python 3 environment
$ pip install -r ~/.emacs.d/requirements/python3-pacakge.txt

$ cp ~/.emacs.d/requirements/flake8-checker.sh /path/to/executable/path
  1. Create Auto Java Complete tags for java-mode:
$ cd ~/.emacs.d/requirements
$ javac Tags.java
$ java -cp .:/path/to/your/jars_and_classesfiles/:/path/to/jre/lib/rt.jar Tags
# This will generate a file .java_base.tag in your home directory
  1. Install the npm modules for js2-mode:
$ npm install tern jshint csslint
$ echo 'export PATH=/path/to/node_modules/.bin:$PATH' >>~/.bashrc
$ . ~/.bashrc

Keymaps

Global

  • M-;: comment-dwim-line
  • C-_: undo-tree-undo
  • M-_: undo-tree-redo
  • M-up: move-line-up
  • M-down: move-line-down
  • C-j: end-of-line-and-indent-new-line
  • TAB or C-i: yas-expand
  • M-#: query-replace-regexp

SLIME

  • M-x slime: Start SLIME REPL
  • M- M-x slime RET <lisp>: Start SLIME REPL with specified lisp program

SLIME REPL

  • , q: Quit SLIME

more

lisp-mode

  • C-c C-k: slime-compile-and-load-file
  • C-c C-c: slime-compile-defun
  • C-up: slime-repl-forward-input
  • C-down: slime-repl-backward-input

Python

python-mode

  • C-c C-r: elpy-refactor

more

Javascript

js2-mode tern-mode

  • M-.: Jump to the definition of the thing under the cursor.
  • M-,: Brings you back to last place you were when you pressed M-..
  • C-c C-r: Rename the variable under the cursor.
  • C-c C-c: Find the type of the thing under the cursor.
  • C-c C-d: Find docs of the thing under the cursor. Press again to open the associated URL (if any).
Something went wrong with that request. Please try again.