My unix rc and emacs config files.
Clone the repository:
git clone https://github.com/ddysher/.unixrc.git
# or
git clone git@github.com:ddysher/.unixrc.git
Initialize submodules:
git submodule init
git submodule update
Then install required symlinks:
ln -sf ~/.unixrc/.emacs.d ~/.emacs.d
ln -sf ~/.unixrc/.zshrc ~/.zshrc
ln -sf ~/.unixrc/.config/ohmyzsh/deyuan.zsh-theme ~/.unixrc/ohmyzsh/custom/themes/deyuan.zsh-theme
Optional symlinks:
mkdir -p ~/.config
ln -sf ~/.unixrc/.config/terminator ~/.config/terminator
ln -sf ~/.unixrc/.config/gtk-3.0 ~/.config/gtk-3.0
ln -sf ~/.unixrc/.config/.fonts.conf ~/.fonts.conf
# 'Xmodmap' change Caps to Ctrl in X11.
ln -sf ~/.unixrc/.config/.Xmodmap ~/.Xmodmap
# 'xprofile' set environment variables required by fcitx.
ln -sf ~/.unixrc/.config/.xprofile ~/.xprofile
ln -sf ~/.unixrc/.config/.npmrc ~/.npmrc
There are certain packages required by emacs configs:
- w3m [required]: used as browser in emacs, install via distro's package manager.
- live markdown [optional]: used to view markdown file in browser while editing.
- doctoc [optional]: used to generate markdown table of content.
List of commands:
sudo apt-get install w3m
# sudo pacman -S w3m
# brew install w3m
sudo npm install -g livedown
sudo npm install -g doctoc
Manually install Golang (for Ubuntu, Debian):
GO_VERSION=1.15
wget https://golang.org/dl/go{$GO_VERSION}-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xvf https://golang.org/dl/go{$GO_VERSION}-amd64.tar.gz
sudo ln -sf /usr/local/go/bin/go /usr/bin/go
A bunch of golang tools need to be installed to make both go and emacs work properly:
# GOPATH is set at ".zshrc".
go get github.com/nsf/gocode
go get github.com/tools/godep
go get github.com/rogpeppe/godef
go get golang.org/x/tools/cmd/guru
go get golang.org/x/tools/cmd/goimports
z is a productivity tool to navigate most used directories.
Create a file ~/.z
which saves z's indexes.
touch ~/.z
To update git submodules, enter the submodule directory and pull the new changes, e.g.
cd tools/z
git checkout master
git pull
cd -
Then commit the changes and push to origin:
git commit -m "update git submodule z"
git push
In aother environment, we can pull the commit and update the submodule via:
git pull
git submodule update
Keyboard delay/rate can be set in desktop environment's 'System Settings' option; or in command line:
xset q
xset r rate 200 33