项目作者: ddysher

项目描述 :
My unix rc files
高级语言: Emacs Lisp
项目地址: git://github.com/ddysher/.unixrc.git
创建时间: 2014-05-10T20:42:37Z
项目社区:https://github.com/ddysher/.unixrc

开源协议:

下载


Linux configs

My unix rc and emacs config files.

Download

Clone the repository:

  1. git clone https://github.com/ddysher/.unixrc.git
  2. # or
  3. git clone git@github.com:ddysher/.unixrc.git

Initialize submodules:

  1. git submodule init
  2. git submodule update

Then install required symlinks:

  1. ln -sf ~/.unixrc/.emacs.d ~/.emacs.d
  2. ln -sf ~/.unixrc/.zshrc ~/.zshrc
  3. ln -sf ~/.unixrc/.config/ohmyzsh/deyuan.zsh-theme ~/.unixrc/ohmyzsh/custom/themes/deyuan.zsh-theme

Optional symlinks:

  1. mkdir -p ~/.config
  2. ln -sf ~/.unixrc/.config/terminator ~/.config/terminator
  3. ln -sf ~/.unixrc/.config/gtk-3.0 ~/.config/gtk-3.0
  4. ln -sf ~/.unixrc/.config/.fonts.conf ~/.fonts.conf
  5. # 'Xmodmap' change Caps to Ctrl in X11.
  6. ln -sf ~/.unixrc/.config/.Xmodmap ~/.Xmodmap
  7. # 'xprofile' set environment variables required by fcitx.
  8. ln -sf ~/.unixrc/.config/.xprofile ~/.xprofile
  9. ln -sf ~/.unixrc/.config/.npmrc ~/.npmrc

Install packages

Emacs

There are certain packages required by emacs configs:

  • w3m [required]: used as browser in emacs, install via distro’s package manager.
  • make, cmake, libtool [required]: used to build vterm 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:

  1. sudo apt-get install w3m
  2. # sudo pacman -S w3m
  3. # brew install w3m
  4. sudo npm install -g livedown
  5. sudo npm install -g doctoc

iTerm2

Install iTerm2 and add related profiles in “~/.unixrc/.config/iterm2”, then change the keyboard binding of “option” and “command”.

Z

z is a productivity tool to navigate most used directories.

Create a file ~/.z which saves z’s indexes.

  1. touch ~/.z

Misc

Update Git Submodule

To update git submodules, enter the submodule directory and pull the new changes, e.g.

  1. cd tools/z
  2. git checkout master
  3. git pull
  4. cd -

Then commit the changes and push to origin:

  1. git commit -m "update git submodule z"
  2. git push

In aother environment, we can pull the commit and update the submodule via:

  1. git pull
  2. git submodule update

Keyboard delay/rate in X11

Keyboard delay/rate can be set in desktop environment’s ‘System Settings’ option;
or in command line:

  1. xset q
  2. xset r rate 200 33