Giter VIP home page Giter VIP logo

tomarrell / .emacs.d Goto Github PK

View Code? Open in Web Editor NEW

This project forked from d4ncer/.emacs.d

0.0 2.0 0.0 24.02 MB

My emacs setup

Emacs Lisp 94.97% Makefile 0.53% Python 0.30% Shell 0.09% Clojure 0.01% CoffeeScript 0.03% CSS 0.10% HTML 0.62% Elixir 0.01% Erlang 0.01% JavaScript 2.77% OCaml 0.01% PHP 0.24% TypeScript 0.01% Ruby 0.04% PLSQL 0.04% SQLPL 0.01% PLpgSQL 0.01% Gherkin 0.25% Scala 0.01%

.emacs.d's Introduction

My .emacs setup

web-mode-trifecta

See more here

Should I use it?

I would highly recommend you do not use it as-is. Here are a few reasons to hopefully discourage you:

  • I have no syntax highlighting
  • Not everyone likes Solarized Light as much as I do
  • My bindings are haphazard at best, and a chaotic mix between the Emacs & Vim philosophies
  • I don't support that one language mode that you can't live without
  • I don't use yasnippet

If you're looking for a starting point, check out Chris Barrett's config for tips on getting started

No but look I'm super lazy

Fine, but you were warned.

Things you need

Quick install (recommended)

wget -O - https://raw.githubusercontent.com/d4ncer/.emacs.d/master/setup.sh | bash

Manual install

mv ~/.emacs.d ~/.emacs.d.bak
git clone [email protected]:d4ncer/.emacs.d.git ~/.emacs.d

Go setup

Packages to install for Go config:

go get -u -v github.com/nsf/gocode
go get -u -v github.com/rogpeppe/godef
go get -u -v github.com/kardianos/govendor
go get -u -v golang.org/x/tools/cmd/guru
go get -u -v golang.org/x/tools/cmd/gorename
go get -u -v golang.org/x/tools/cmd/goimports

JS setup

Tern setup:

cd lisp/tern
npm install

Required binaries:

npm install -g stylefmt

Binaries for global fallback (this is optional, but highly recommended):

npm install -g eslint flow prettier eslint-config-airbnb eslint-config-prettier \
    eslint-plugin-flowtype eslint-plugin-import eslint-plugin-jsx-a11y \
    eslint-plugin-prettier  eslint-plugin-react

If you do use a global eslint, you should add a fallback .eslintrc.json in your root folder. A sample:

{
  "extends": ["airbnb", "prettier", "prettier/flowtype", "prettier/react"],
  "env": {
    "browser": true,
    "jest": true,
    "node": true
  },
  "plugins": ["react", "flowtype"],
  "parser": "babel-eslint",
  "rules": {
    "flowtype/define-flow-type": 1,
    "import/no-extraneous-dependencies": ["error", {
      "devDependencies": true,
      "optionalDependencies": false,
      "peerDependencies": false
    }
    ]
  }
}

Packages of note

Most of my work is on the frontend, which is reflected in my setup. Some packages of note:

  • Evil
  • Ivy (with ripgrep)
  • Spacemacs leader keys
  • Projectile
  • Flycheck
  • Magit
  • Org
  • IBuffer
  • Neotree
  • Smartparens

Language Modes

  • Web
    • JS/JSX/HTML/CSS
    • Flow
    • Tern
    • Stylelint
    • Prettier
  • Elisp
  • Go
  • Scala
  • Haskell
  • YAML
  • Markdown
  • CoffeeScript
  • Dockerfile
  • Groovy
  • RNC

Planned Modes

NB In order of importance to me. If you're using my setup and want something supported not on this list, feel free to issue a PR.

  • Python
  • Java
  • OCaml
  • TypeScript
  • Racket

Misc notes

  • I use Marked 2 to preview markdown files. If you don't have it, or you want to use something, set markdown-open-command to point to something else. If you are using Marked 2, here is how you set it up
  • If you want to tweak the font settings look in config/rk-faces/rk-theme-base.el.
  • I put more effort into some modes than others, hence there are some modes with considered chordal bindings, and some with none. If you notice this, and you'd like to flesh these modes out, please send me a PR!

Credits

  • Heavily copied borrowed & adapted from Chris Barrett's wonderful setup.
  • Thanks to JH for the setup script

.emacs.d's People

Contributors

d4ncer avatar jackhopner avatar

Watchers

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