Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit 1b3dddffde1445dd2a41bd88dcbf6e1e6d2e247c @napthats committed Sep 2, 2012
Showing with 157 additions and 0 deletions.
  1. +56 −0 .emacs.d/init.el
  2. +3 −0 .tmux.conf
  3. +80 −0 .vimrc
  4. +18 −0 .zshrc
@@ -0,0 +1,56 @@
+;;basic settings
+(setq load-path (cons "~/.emacs.d/elisp/" load-path))
+(global-set-key "\C-h" 'delete-backward-char)
+(define-key isearch-mode-map "\C-h" 'isearch-delete-char)
+(setq-default indent-tabs-mode nil)
+(tool-bar-mode -1)
+(menu-bar-mode -1)
+(show-paren-mode 1)
+(line-number-mode 1)
+(column-number-mode 1)
+(toggle-scroll-bar nil)
+
+;;smart tab
+(require 'smart-tab)
+(global-smart-tab-mode 1)
+
+;;scala-mode
+(require 'scala-mode)
+(add-to-list 'auto-mode-alist '("\\.scala$" . scala-mode))
+(add-hook 'scala-mode-hook 'jaspace-mode)
+
+;;jsx-mode
+(add-to-list 'load-path (expand-file-name "~/.emacs.d/site-lisp/"))
+
+(add-to-list 'auto-mode-alist '("\\.jsx\\'" . jsx-mode))
+(autoload 'jsx-mode "jsx-mode" "JSX mode" t)
+
+(custom-set-variables
+ '(jsx-indent-level 2)
+)
+
+(defun jsx-mode-init ()
+ (define-key jsx-mode-map (kbd "C-c d") 'jsx-display-popup-err-for-current-line)
+ (when (require 'auto-complete nil t)
+ (auto-complete-mode t)))
+
+(add-hook 'jsx-mode-hook 'jsx-mode-init)
+
+;;Marmalade
+(require 'package)
+(add-to-list 'package-archives
+ '("marmalade" .
+ "http://marmalade-repo.org/packages/"))
+(package-initialize)
+
+;;evernote
+(require 'evernote-mode)
+(setq evernote-username "naokiyoshinaga")
+(setq evernote-enml-formatter-command '("w3m" "-dump" "-I" "UTF8" "-O" "UTF8"))
+(global-set-key "\C-cec" 'evernote-create-note-in-notebook)
+(global-set-key "\C-ceo" 'evernote-open-note)
+(global-set-key "\C-ces" 'evernote-search-notes)
+(global-set-key "\C-ceS" 'evernote-do-saved-search)
+(global-set-key "\C-cew" 'evernote-write-note)
+(global-set-key "\C-cep" 'evernote-post-region)
+(global-set-key "\C-ceb" 'evernote-browser)
@@ -0,0 +1,3 @@
+set-option -g prefix C-t
+bind-key C-t next-window
+bind-key C-r previous-window
80 .vimrc
@@ -0,0 +1,80 @@
+set autoindent
+set expandtab
+
+inoremap {} {}<Left>
+inoremap [] []<Left>
+inoremap () ()<Left>
+inoremap "" ""<Left>
+inoremap '' ''<Left>
+inoremap <> <><Left>
+
+inoremap <C-f> <Right>
+inoremap <C-b> <Left>
+inoremap <C-j> <Esc>
+
+nnoremap sa ia<Esc>l
+nnoremap sb ib<Esc>l
+nnoremap sc ic<Esc>l
+nnoremap sd id<Esc>l
+nnoremap se ie<Esc>l
+nnoremap sf if<Esc>l
+nnoremap sg ig<Esc>l
+nnoremap sh ih<Esc>l
+nnoremap si ii<Esc>l
+nnoremap sj ij<Esc>l
+nnoremap sk ik<Esc>l
+nnoremap sl il<Esc>l
+nnoremap sm im<Esc>l
+nnoremap sn in<Esc>l
+nnoremap so io<Esc>l
+nnoremap sp ip<Esc>l
+nnoremap sq iq<Esc>l
+nnoremap sr ir<Esc>l
+nnoremap ss is<Esc>l
+nnoremap st it<Esc>l
+nnoremap su iu<Esc>l
+nnoremap sv iv<Esc>l
+nnoremap sw iw<Esc>l
+nnoremap sx ix<Esc>l
+nnoremap sy iy<Esc>l
+nnoremap sz iz<Esc>l
+nnoremap s1 i1<Esc>l
+nnoremap s2 i2<Esc>l
+nnoremap s3 i3<Esc>l
+nnoremap s4 i4<Esc>l
+nnoremap s5 i5<Esc>l
+nnoremap s6 i6<Esc>l
+nnoremap s7 i7<Esc>l
+nnoremap s8 i8<Esc>l
+nnoremap s9 i9<Esc>l
+nnoremap s0 i0<Esc>l
+nnoremap s! i!<Esc>l
+nnoremap s@ i@<Esc>l
+nnoremap s# i#<Esc>l
+nnoremap s$ i$<Esc>l
+nnoremap s% i%<Esc>l
+nnoremap s^ i^<Esc>l
+nnoremap s& i&<Esc>l
+nnoremap s* i*<Esc>l
+nnoremap s( i(<Esc>l
+nnoremap s) i)<Esc>l
+nnoremap s- i-<Esc>l
+nnoremap s_ i_<Esc>l
+nnoremap s= i=<Esc>l
+nnoremap s+ i+<Esc>l
+nnoremap s[ i]<Esc>l
+nnoremap s{ i{<Esc>l
+nnoremap s] i]<Esc>l
+nnoremap s} i}<Esc>l
+nnoremap s\ i\<Esc>l
+nnoremap s; i;<Esc>l
+nnoremap s: i:<Esc>l
+nnoremap s' i'<Esc>l
+nnoremap s" i"<Esc>l
+nnoremap s, i,<Esc>l
+nnoremap s< i<<Esc>l
+nnoremap s. i.<Esc>l
+nnoremap s> i><Esc>l
+nnoremap s/ i/<Esc>l
+nnoremap s? i?<Esc>l
+
18 .zshrc
@@ -0,0 +1,18 @@
+autoload -U compinit
+compinit
+PROMPT="%B%F{blue}%m:%n%%%f%b "
+RPROMPT="[%~]"
+HISTFILE=~/.zsh_history
+HISTSIZE=10000000000
+SAVEHIST=10000000000
+setopt hist_ignore_dups
+setopt share_history
+setopt auto_pushd
+
+export LSCOLORS=exfxcxdxbxegedabagacad
+export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30'
+alias ls="ls --color"
+alias gls="gls --color"
+alias emacs="emacs -nw"
+zstyle ':completion:*' list-colors 'di=34' 'ln=35' 'so=32' 'ex=31' 'bd=46;34' 'cd=43;34'
+zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z} r:|[-_.]=**'

0 comments on commit 1b3dddf

Please sign in to comment.