Coder Social home page Coder Social logo

emacs-config's Introduction

EdgeCase Emacs Config

You should give it a try.

Pre-requisites

This config is built primarily to work on top of the OS X version of Emacs. Be sure to download version 24 or greater.

Install

  1. git clone git://github.com/edgecase/emacs-config.git
  2. cd emacs-config
  3. rake
  4. Open emacs with your app launcher of choice. You should see emacs downloading and compiling the defined packages.

We have leveraged Phil Hagelberg's emacs-starter-kit which uses Marmalade for downloading common emacs packages.

Clojure

For a clojure development environment, follow the steps below.

  1. Install Leiningen

  2. If you're planning to use clojure-jack-in for opening SLIME in a clojure project, you must run $ lein plugin install swank-clojure <VERSION> where <VERSION> is the version of swank-clojure you wish to install. OR

  3. add swank-clojure to your project.clj :dev-dependencies and run lein deps. This will allow you to open a SLIME session inside the leiningen project.

Customizing

Emacs works especially well when wanting user-specific configurations.

Simply place customization files to the folder ~/.emacs.d/<username>. Where <username> is the whoami or logname of the currently logged in user.

  • Any file with a .el extension in that folder will be loaded when running emacs.

We suggest creating your own repository of .el files and symlinking them to the folder ~/.emacs.d/<username>.

Bindings

General

C-x C-+ => increase font size

C-x C-+ => decrease font size

C-x + => balance windows

M-g g , M-g M-g => goto line number

Dired Mode

Think of it as "directory edit" mode.

C-x d => dired mode

  • C-x C-q => edit filename inline
  • C-c C-c => commit changes

Clojure

C-c C-j => clojure-jack-in

C-c f => find-file-in-project

Version Control

C-x v = => diff

C-x v u => undo local changes

C-x v l => view commit log

C-x v i => include in repository (git add <file>)

C-c g => MAGIT status

  • <tab> => view diff
  • s => stage changes
  • u => unstage changes
  • c => commit buffer
  • C-c C-c => commit changes
  • C-c C-a => amend changes
  • P => push
  • F => pull
  • b => change branch
  • B => new branch
  • g => refresh status buffer

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.