Giter Site home page Giter Site logo

theoandersen / .emacs.d_old Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 15.23 MB

my emacs setup

Emacs Lisp 87.37% Shell 0.02% JavaScript 3.38% CSS 0.45% Ruby 0.85% PowerShell 0.12% Perl 2.20% ASP 0.02% Objective-C 0.07% PHP 4.15% Python 0.94% Java 0.01% XSLT 0.40% Clojure 0.03% Self 0.01%

.emacs.d_old's Introduction

My emacs settings

An ever-changing set of emacs settings. Micro-optimizations are super fun. These are used in the Emacs Rocks screencasts.

Setup

To grab all the dependencies, either:

git clone git://github.com/magnars/.emacs.d.git
cd .emacs.d
git submodule init
git submodule update

or on git v1.6.5 or later:

git clone --recursive git://github.com/magnars/.emacs.d.git

Magit

I don't keep magit in my .emacs.d. To install magit, do

M-x package-list-packages

Search for magit and install it there.

Install emacs on mac

I use Cocoa Emacs, installed like this:

brew install emacs --cocoa --use-git-head --HEAD

Tips for using these emacs settings

If you want to use my settings straight out of the box, here are some things to note:

  • The key bindings are optimized for a norwegian keyboard layout.

  • Start by reading up on all the cool stuff in key-bindings.el.

  • You quit emacs with C-x r q, mnemonic Really Quit.

  • Find file in project with C-x o, in dir with C-x C-f, recent with C-x f

  • Add your user- and project-specific stuff in .emacs.d/users/[machine name]/*.el

  • C-h is rebound to backspace, like in the shell. Get help on F1 instead.

  • Autocomplete with C-.

  • expand-region is your friend. Find its bound key by doing F1 f er/expand-region

  • annoying-arrows suggests alternative ways of moving around if you use the arrow keys excessively.

  • Undo with C-_ and redo with M-_. Watch the undo-tree with C-x u

  • Easily add functions to the F-keys with M-: (f5 <sexps here>), example (f5 (flush-lines "console.log"))

  • Quickly jump anywhere in the buffer by pressing fn plus the starting letter of a word.

  • Indent and clean up white space in the entire buffer with C-c n

  • Watch emacsrocks.com

.emacs.d_old's People

Contributors

magnars avatar theoandersen avatar cjohansen avatar

Stargazers

 avatar

Watchers

 avatar James Cloos 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.