From c867e8181276364cf96607e872ae076dbcb7a27f Mon Sep 17 00:00:00 2001 From: Raghuvir Kasturi Date: Thu, 23 Sep 2021 13:23:54 +1200 Subject: [PATCH] [misc] Cleanup --- README.md | 10 ++++---- setup.sh | 75 ------------------------------------------------------- 2 files changed, 5 insertions(+), 80 deletions(-) delete mode 100755 setup.sh diff --git a/README.md b/README.md index 38309faa..52111771 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,11 @@ ## Main tenets -* Prefer basic semantic highlighting via grayscale & font weight; **no** syntax highlighting -* I use `evil`, but my bindings are a chaotic mix of both vim & emacs philosophies -* Favour LSP to power an IDE-like experience wherever possible (I use `lsp-mode`) +* Prefer basic semantic highlighting via grayscale & font weight; **no** syntax highlighting. + * I use Nicolas Rougier's wonderful [`nano`](https://github.com/rougier/nano-emacs) as my theme base. +* I use `evil`, but my bindings are a chaotic mix of both `vim` & `emacs` philosophies +* Favour LSP to power an IDE-like experience wherever possible (I use `lsp-mode`), except for TypeScript, where I use [`tide`](https://github.com/ananthakumaran/tide/ +) * `org-mode` for building out a second brain (via `org-roam`), task management (via a GTD-esque workflow within `org-roam`), and literate development (via `org-babel`) * `straight.el` for package management @@ -14,5 +16,3 @@ * Heavily ~~copied~~ borrowed & adapted from [Chris Barrett](https://github.com/chrisbarrett)'s wonderful [setup](https://github.com/chrisbarrett/.emacs.d). -* Thanks to [JH](https://github.com/jackhopner) for the setup script -* Thanks to [hlissner](https://github.com/hlissner/doom-emacs) for his wonderful mode-line diff --git a/setup.sh b/setup.sh deleted file mode 100755 index 7d9701a6..00000000 --- a/setup.sh +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/bash - -set -e - -exists () { - type "$1" >/dev/null 2>/dev/null -} - -echo '--> Backing up existing .emacs.d...' -mv ~/.emacs.d ~/.emacs.d.bak -echo '--> Back up done (at ~/.emacs.d.bak)!' -echo '--> Cloning d4ncer/.emacs.d...' -git clone git@github.com:d4ncer/.emacs.d.git ~/.emacs.d -echo '--> Done!' - -# Rust setup -if (exists rustup && exists cargo); then - echo '--> Installing required Rust binaries...' - rustup component add rust-src - cargo install racer - echo '--> Done!' -else - echo '--> It looks like you do not have rustup and cargo installed.' - echo '--> Not installing Rust binaries.' -fi - -# Go setup -if exists go; then - echo '--> Installing required Go binaries...' - go get -u -v github.com/stamblerre/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 - go get -u -v github.com/zmb3/gogetdoc - go get -u -v github.com/fatih/gomodifytags - go get -u -v honnef.co/go/tools/cmd/keyify - echo '--> Done!' -else - echo '--> It looks like you do not have go installed.' - echo '--> Not installing Go binaries.' -fi - -# JS setup -if (exists npm && exists node); then - echo '--> Installing global NPM binaries...' - npm install -g eslint prettier eslint-config-airbnb eslint-config-prettier \ - eslint-plugin-import eslint-plugin-jsx-a11y \ - eslint-plugin-prettier eslint-plugin-react - echo '--> Done!' -else - echo '--> It looks like you do not have npm && node installed.' - echo '--> Not installing global NPM binaries.' -fi - -if exists stylelint; then - echo '--> Creating a boilerplate Stylelint config at ~/.stylelintrc.json...' - cp ~/.emacs.d/mk/.stylelintrc.json ~/.stylelintrc.json - echo '--> Done!' -else - echo '--> It looks like you do not have a global install of Stylelint.' - echo '--> Not creating a global .stylelintrc.json.' -fi - -if exists eslint; then - echo '--> Creating a boilerplate ESLint config at ~/.eslintrc.json...' - cp ~/.emacs.d/mk/.eslintrc.json.sample ~/.eslintrc.json - echo '--> Done!' -else - echo '--> It looks like you do not have a global install of ESLint.' - echo '--> Not creating a global .eslintrc.json.' -fi - -echo '--> Your new emacs config is ready to go!'