Last active
December 15, 2015 07:09
-
-
Save torufurukawa/5221141 to your computer and use it in GitHub Desktop.
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
;;; -*- coding: utf-8 -*- | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(column-number-mode t) | |
'(show-paren-mode t) | |
'(tool-bar-mode nil) | |
'(transient-mark-mode t)) | |
(custom-set-faces | |
;; custom-set-faces was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
) | |
;;; elisp path | |
(setq load-path (cons "~/.emacs.d/elisp" load-path)) | |
;;; key binds | |
(global-set-key "\C-xg" 'goto-line) | |
;;; Dynamic Macro | |
(defconst *dmacro-key* "\C-t" "·«ÊÖ¤·»ØÄꥡ¼") | |
(global-set-key *dmacro-key* 'dmacro-exec) | |
(autoload 'dmacro-exec "dmacro" nil t) | |
;;; Backspace | |
(global-set-key "\C-h" 'backward-delete-char) | |
;;; migemo | |
(setq migemo-use-pattern-alist t) | |
(setq migemo-use-frequent-pattern-alist t) | |
(require 'migemo) | |
;;; Auto save | |
(require 'auto-save-buffers) | |
(run-with-idle-timer 2.0 t 'auto-save-buffers) | |
;;; Physical line mode | |
(require 'physical-line) | |
;;; Auto Complete | |
(require 'auto-complete) | |
(global-auto-complete-mode t) | |
;;; ActionScript mode | |
(require 'actionscript-mode) | |
;;; font | |
(set-face-attribute 'default nil | |
:family "monaco" | |
:height 120) | |
(set-fontset-font | |
(frame-parameter nil 'font) | |
'japanese-jisx0208 | |
'("Hiragino Maru Gothic Pro" . "iso10646-1")) | |
(set-fontset-font | |
(frame-parameter nil 'font) | |
'japanese-jisx0212 | |
'("Hiragino Maru Gothic Pro" . "iso10646-1")) | |
(set-fontset-font | |
(frame-parameter nil 'font) | |
'mule-unicode-0100-24ff | |
'("monaco" . "iso10646-1")) | |
(setq face-font-rescale-alist | |
'(("^-apple-hiragino.*" . 1.2) | |
(".*osaka-bold.*" . 1.2) | |
(".*osaka-medium.*" . 1.2) | |
(".*courier-bold-.*-mac-roman" . 1.0) | |
(".*monaco cy-bold-.*-mac-cyrillic" . 0.9) | |
(".*monaco-bold-.*-mac-roman" . 0.9) | |
("-cdac$" . 1.3))) | |
;; ほげ ほげ ほげ | |
;; hoge fuga moge | |
;;; REst | |
(require 'rst) | |
(setq auto-mode-alist | |
(append '(("\\.txt$" . rst-mode) | |
("\\.rst$" . rst-mode) | |
("\\.rest$" . rst-mode)) auto-mode-alist)) |
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
fpath=(~/.zsh/functions $fpath) | |
autoload -U compinit | |
compinit | |
setopt auto_pushd | |
setopt correct | |
setopt list_packed | |
setopt nolistbeep | |
# hisotry | |
HISTFILE=${HOME}/.zsh-history # 履歴をファイルに保存する | |
HISTSIZE=100000 # メモリ内の履歴の数 | |
SAVEHIST=100000 # 保存される履歴の数 | |
setopt extended_history # 履歴ファイルに時刻を記録 | |
function history-all { history -E 1 } # 全履歴の一覧を出力する | |
#autoload predict-on | |
#predict-on | |
export LANG=ja_JP.UTF-8 | |
case "${TERM}" in | |
kterm*|xterm*) | |
precmd() { | |
echo -ne "\033]0;${USER}@${HOST%%.*}\007" | |
} | |
;; | |
esac | |
bindkey -e | |
alias ls='ls -G' | |
alias ll='ls -l' | |
alias la='ll -a' | |
export MYSQL_PS1='\u@\h (\d) > ' | |
[ -f ~/.zshrc.mine ] && source ~/.zshrc.mine | |
export PYTHONPATH=${PYTHONPATH}:$HOME/bin/gsutil/boto | |
export WORKON_HOME=$HOME/.virtualenvs | |
#source `which virtualenvwrapper.sh` | |
export PATH=.:/usr/local/Cellar/python/2.7.2/bin:/usr/local/Cellar/python/2.7/bin:/usr/local/opt/ruby/bin:${PATH}:$HOME/bin/gsutil:$HOME/bin | |
# VCS | |
autoload -Uz vcs_info | |
zstyle ':vcs_info:*' formats '(%s)-[%b]' | |
zstyle ':vcs_info:*' actionformats '(%s)-[%b|%a]' | |
precmd () { | |
psvar=() | |
LANG=en_US.UTF-8 vcs_info | |
[[ -n "$vcs_info_msg_0_" ]] && psvar[1]="$vcs_info_msg_0_" | |
} | |
# prompt | |
PROMPT="%B$USER@%m$%b " | |
RPROMPT="[%~]%1(v|%F{green}%1v%f|)" | |
# aliases | |
alias gitst='git status -s' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment