Skip to content

Instantly share code, notes, and snippets.

huqi / basecommand_emacs
Created October 27, 2017 09:22 — forked from shijinkui/basecommand_emacs
C-x C-f 打开/新建文件
C-x C-s 保存当前缓冲区
C-x C-w 当前缓冲区另存为
C-x C-v 关闭当前Buffer并打开新文件
C-x i 光标处插入文件
C-x b 切换Buffer
C-x C-b 显示Buffer列表
C-x k 关闭当前Buffer
huqi /
Last active September 27, 2017 03:05

Setting up Emacs daemon on OS X

Tired of waiting for emacs to start on OS X? This step by step guide will teach you how to install the latest version of emacs and configure it to start in the background (daemon mode) and use emacsclient as your main editor.

Install Homebrew

First you'll need to install the [Homebrew package manager][brew] if yo haven't already. It is amazing.

huqi / mac_gnu_grep
Created May 6, 2015 09:00
Mac gnu grep
# Enable dupe and install
brew tap homebrew/dupes
brew install homebrew/dupes/grep
# Install the perl compatible regular expression library
brew install pcre
huqi /
Last active August 29, 2015 14:20
start conky
sleep 20
conky -d -c ~/.conkyrc
huqi /
Last active August 29, 2015 14:20
sync c tags
# generate tag file for cscope
echo "Generating cscope tag file..."
find $PWD -name "*.h" -o -name "*.c" -o -name "*.cpp" -o -name "*.res" -o -name "*.mak" > cscope.files
cscope -bkq -i cscope.files
# generate tag file for ctags
echo "Generating ctags tag file..."
ctags -R
huqi / git_toturial
Last active November 21, 2018 03:16 — forked from guweigang/git_toturial
git toturial
git init # 初始化本地git仓库(创建新仓库)
git config --global "xxx" # 配置用户名
git config --global "" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://git@ # clone远程仓库
huqi / trial.key
Created April 11, 2015 09:01
Beyond Compare 4 license for Mac
Beyond Compare 4
Licensed to: ASIO Allsoftinone
Quantity: 1 user
Serial number: 1822-9597
License type: Pro Edition for Windows