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
For all major modes: | |
26854 13.38% winum-select-window-2 , 2, M-2 | |
23086 11.50% winum-select-window-1 , 1, M-1 | |
13787 6.87% evilmi-jump-items %, <visual-state> %, <normal-state> % | |
9807 4.89% my-switch-to-shell , x z, , x c | |
8410 4.19% evil-visualstar/begin-search-forward <visual-state> * | |
7888 3.93% my-counsel-recentf , r r | |
7442 3.71% my-multi-purpose-grep , q q | |
7429 3.70% winum-select-window-3 , 3, M-3 |
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
(defconst my-chinese-pinyin-order-hash | |
#s(hash-table size 30 test equal data ( | |
"一" 375 | |
"乙" 381 | |
"二" 81 | |
"十" 293 | |
"丁" 72 | |
"厂" 35 | |
"七" 264 | |
"卜" 20 |
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
## | |
# Bash 4+ required | |
# FROM, | |
# 1. http://tldp.org/LDP/abs/html/sample-bashrc.html | |
# 2. git://github.com/chenkaie/DotFiles.git | |
## | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; |
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
commit 6164972018ba3adbae2db1e7b286e2b811b3e7c2 | |
Author: Matthieu Moy <[email protected]> | |
Date: Thu Feb 25 09:37:27 2016 +0100 | |
README.md: add hyperlinks on filenames | |
Signed-off-by: Matthieu Moy <[email protected]> | |
Signed-off-by: Junio C Hamano <[email protected]> | |
diff --git a/README.md b/README.md |
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
[声母] | |
zh=V | |
ch=I | |
sh=U | |
[韵母] | |
iu=Q | |
ua=X | |
ia=X | |
uan=R |
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
(require 'cl-lib) | |
(defun my-read-file (file) | |
(with-temp-buffer | |
(insert-file-contents (file-truename file)) | |
(buffer-string))) | |
;; (message "content=%s" (my-read-file)) | |
(defun my-format-dictionary () | |
(interactive) | |
(let* ((h (make-hash-table :size 1000)) |
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
#!/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 |
NewerOlder