This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
[ -z "$EMACS_VERSION" ] && echo "Usage: EMACS_VERSION=25.1 install-emacs.sh or EMACS_VERSION=snapshot install-emacs.sh" && exit 1 | |
[ -z "$EMACS_URL" ] && EMACS_URL="http://mirror.aarnet.edu.au/pub/gnu/emacs/" | |
# I've assign 12G memory to /tmp as ramdisk | |
[ -z "$EMACS_TMP" ] && EMACS_TMP="/tmp" | |
if [ "$EMACS_VERSION" != "snapshot" ]; then | |
echo "curl $EMACS_URL/emacs-$EMACS_VERSION.tar.gz" | |
curl $EMACS_URL/emacs-$EMACS_VERSION.tar.gz | tar xvz -C $EMACS_TMP | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# open terminal | |
cmd - return : ~/Applications/iTerm.app/Contents/MacOS/iTerm2 --single-instance -d ~ | |
# focus window | |
cmd - h : yabai -m window --focus west | |
cmd - j : yabai -m window --focus south | |
cmd - k : yabai -m window --focus north | |
cmd - l : yabai -m window --focus east | |
# balance size of windows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM shamelessly copied from git://github.com/justsoso8/dotfile.git | |
REM mintty installed which supports chinese | |
REM ======================================= | |
@echo off | |
rem find cygwin roo directory one by one | |
rem disk c -> disk d -> disk e | |
:CYGWIN_C | |
if not exist c:\cygwin64 goto CYGWIN_D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
[ -z "$MYEMACSCLIENT" ] && MYEMACSCLIENT="emacs" | |
# $1=$BASE, $2=$LOCAL, $3=$REMOTE, $4=$MERGED | |
if [ "$MYEMACSCLIENT" = "emacs" ]; then | |
$MYEMACSCLIENT -nw -Q --eval "(setq startup-now t)" -l "$HOME/.emacs.d/init.el" --eval "(progn (setq ediff-quit-hook 'kill-emacs) (if (file-readable-p \"$3\") (ediff-merge-files-with-ancestor \"$1\" \"$2\" \"$3\" nil \"$4\") (ediff-merge-files \"$2\" \"$3\" nil \"$4\")))" | |
else | |
$MYEMACSCLIENT -nw --eval "(progn (setq ediff-quit-hook 'kill-emacs) (if (file-readable-p \"$3\") (ediff-merge-files-with-ancestor \"$1\" \"$2\" \"$3\" nil \"$4\") (ediff-merge-files \"$2\" \"$3\" nil \"$4\")))" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; A minimum .emacs to test Emacs plugins | |
(show-paren-mode 1) | |
(eval-when-compile (require 'cl)) | |
;; test elisps download from internet here | |
(setq test-elisp-dir "~/test-elisp/") | |
(unless (file-exists-p (expand-file-name test-elisp-dir)) | |
(make-directory (expand-file-name test-elisp-dir))) | |
(setq load-path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[apply] | |
whitespace = nowarn | |
[user] | |
name = Chen Bin | |
email = cb@myemail.com | |
[core] | |
# @see http://comments.gmane.org/gmane.comp.version-control.git/166098 | |
filemode = true | |
ignorecase = false | |
autocrlf = false |
OlderNewer