Code Monkey home page Code Monkey logo

emacs's Introduction

Emacs

overview

My personal Emacs configuration used mostly for JavaScript development.

Node.js is required for JavaScript syntax checking.

Installation

  1. Download repository.
  2. Symlink or copy ./configs/.emacs and ./configs/.emacs.d to your home directory.
  3. Install TSlint

Included packages

Key bindings

  • Movement

    • Ctrl + f - move forward
    • Ctrl + b - move backward
    • Ctrl + n - move to next line
    • Ctrl + p - move to previous line
    • Ctrl + a - move to beginning of the line
    • Ctrl + e - move to ending of the line
    • Alt + f - move word forward
    • Alt + b - move word backward
    • Alt + right arrow - move forward (semantic)
    • Alt + left arrow - move backward (semantic)
    • Alt + up arrow - move up (semantic)
    • Alt + down arrow - move down (semantic)
    • Alt + < - move to beginning of the file
    • Alt + > - move to ending of the file
    • Ctrl + v - scroll down
    • Alt + v - scroll up
    • Alt + p - move line/region up
    • Alt + n - move line/region down
    • up arrow - jump to line with number
  • Selection

    • Ctrl + space - enter/exit text selection mode
    • Ctrl + . - mark next like this
    • Ctrl + , - mark previous like this
    • Ctrl + j - new line for many cursors
    • Alt + s - expand selection, then by pressing s expand it wider
    • Ctrl + x + p - select all
    • Alt + . - add another cursor forward/below
    • Alt + , - add another cursor backward/up
  • History and search

    • Alt + w - copy
    • Ctrl + k - cut
    • Ctrl + y - paste, then by pressing Alt + y paste previously copied text
    • Left arrow - undo
    • Right arrow - redo
    • Ctrl + s - Isearch (forward, case sensitive)
    • Ctrl + r - Isearch (backward, case sensitive)
    • Alt + c - switch to case insensitive Isearch
    • Alt + g - recursive grep
  • Text removal

    • Alt + backspace - remove word backward
    • Alt + d - remove word forward
    • Ctrl + d - remove character forward
  • Files and console

    • Ctrl + c p f - search file
    • Ctrl + l - search file (helm)
    • Alt + l - search buffer (helm)
    • Alt + x - search command (helm)
    • Ctrl + x b - search through open files
    • Alt + x - open console
    • Ctrl + x Ctrl + f - browse files
    • Ctrl + r - next
    • Ctrl + s - previous
  • Avy

    • Ctrl + space - go to word (two letters)
    • Ctrl + w - go to word (one letter)
    • Ctrl + l - go to line
  • JavaScript

    • f tab - anonymous function snippet
    • fn tab - named function snippet
    • i tab - if snippet
    • ie tab - if else snippet
    • Ctrl + c i - js function description comment
  • Windows

    • Ctrl + x 3 - split screen vertically
    • Ctrl + x 2 - split screen horizontally
    • Ctrl + x o - move to next window
    • Ctrl + x 0 - close window
    • Ctrl + x Ctrl + o - rotate buffer windows
  • Helm buffer list

    • Alt + l - open list
    • Ctrl + Space - mark buffers on the list
    • Alt + Shift + d - kill marked buffers and close Helm
  • TypeScript/Angular

    • Ctrl + c Ctrl + c - open component counterpart
    • Ctrl + c j - jump to html binding (inside a template)
    • Ctrl + c j - jump to definition (inside a TypeScript file)
    • Ctrl + c r s - rename symbol
    • Ctrl + c r f - rename file
  • Bookmarks

    • Ctrl + c b l - open list of bookmarks
    • Ctrl + c b a - add a bookmark
    • Ctrl + c b d - delete a bookmark
    • Ctrl + c b r - rename a bookmark
  • Other

    • Alt + ; - comment/uncomment line/selection
    • Ctrl + x u - open undo-tree buffer
    • Alt + m - open magit status buffer
    • down arrow - count lines, words and characters
    • Ctrl + c Ctrl + s - cycle between different ways of writing strings (camelCase, kebab_case etc.)
    • Alt + r - open rgrep

Credits

Great thanks to Andrzej for showing me emacs, what made me immediately hooked.

emacs's People

Contributors

okamgnienie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

joerihermans

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.