Skip to content

Latest commit

 

History

History
142 lines (104 loc) · 3.22 KB

setup.org

File metadata and controls

142 lines (104 loc) · 3.22 KB

Setting up computer

Install updated emacs

brew tap d12frosted/emacs-plus
brew install emacs-plus@28 --with-ctags --with-debug

Clone vault repo with packages

git clone https://github.com/beng/vault.git ~/Documents/code/vault

ln -s $HOME/Documents/code/vault/config/emacs/doom/.doom.d/ $HOME/.doom.d

ln -s $HOME/Documents/code/vault/config/emacs/doom/.emacs.d $HOME/.emacs.d

Install packages

Install elixir language server

git clone [email protected]:elixir-lsp/elixir-ls.git ~/Documents/code/elixir-ls

Install doom-emacs

git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d

~/.emacs.d/bin/doom install

OS X

# install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

brew update

packages=(reattach-to-user-namespace \
    ag \
    coreutils)

brew install \
    reattach-to-user-namespace \
    ag \
    coreutils \
    ripgrep \
    pyenv \
    virtualenv \
    cmake \
    # handle issue with doomemacs html formatting
    tidy-html5 \
    shellcheck

brew tap caskroom/fonts

brew cask install \
    font-hack \
    iterm2 \
    # window manager
    rectangle

Install pyenv

OS X

brew install pyenv

Configure packages

Rectangle

defaults write com.knollsoft.Rectangle gapSize -float 2.5
defaults write com.knollsoft.Rectangle subsequentExecutionMode -int 2

Install LSP for GoLang

GO111MODULE=on go get golang.org/x/tools/gopls@latest

Install Rust

Rust analyzer required for lsp to work correctly https://rust-analyzer.github.io/manual.html#rust-analyzer-language-server-binary

curl https://sh.rustup.rs -sSf | sh
rustup component add rls rust-analysis rust-src clippy

Install LSP for bash

npm i -g bash-language-server

Install zsh-vi-mode

git clone https://github.com/jeffreytse/zsh-vi-mode \
  $ZSH/custom/plugins/zsh-vi-mode

Setup 24 bit/true color for iterm2

directions found here https://github.com/syl20bnr/spacemacs/wiki/Terminal

  1. symlink $(pwd)/config/xterm-24bit.terminfo to ~/xterm-24bit.terminfo
  2. `/usr/bin/tic -x -o ~/.terminfo xterm-24bit.terminfo`
  3. export TERM=xterm-24bit (this is already in zshrc)
  4. make sure to export utf8 lang variables (this is already in zshrc) “` export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 export LANGUAGE=en_US.UTF-8 “`

Install kitty terminal

https://github.com/kovidgoyal/kitty

brew intall kitty

Symlink Configs

Symlink Kitty

ln -s $HOME/Documents/code/vault/config/kitty/kitty.conf $HOME/.config/kitty/kitty.conf

ln -s $HOME/Documents/code/vault/config/kitty/kitty_search $HOME/.config/kitty/kitty_search