diff --git a/emacs b/emacs index 8189bc6..6991c75 100644 --- a/emacs +++ b/emacs @@ -148,13 +148,15 @@ (add-to-list 'auto-mode-alist '("Jakefile$" . js2-mode)) (add-hook 'js2-mode-hook '(lambda () (local-set-key "\C-m" 'newline) - (c-subword-mode t))) + (c-subword-mode t) + (setq indent-tabs-mode nil))) (autoload #'espresso-mode "espresso" "Start espresso-mode" t) ;;(add-to-list 'auto-mode-alist '("\\.js$" . espresso-mode)) (add-to-list 'auto-mode-alist '("\\.json$" . espresso-mode)) -(add-hook 'js2-mode-hook (lambda () (c-subword-mode t))) +(add-hook 'js2-mode-hook '(lambda () (c-subword-mode t))) + ;;;;;;;;;;;;;;;;; @@ -277,9 +279,9 @@ ;; drag stuff mode ;; ;;;;;;;;;;;;;;;;;;;;; -(add-to-list 'load-path "~/config/emacs.d/drag-stuff") -(require 'drag-stuff) -(drag-stuff-mode t) ; always on +;; (add-to-list 'load-path "~/config/emacs.d/drag-stuff") +;; (require 'drag-stuff) +;; (drag-stuff-mode t) ; always on ;;;;;;;;;;;;;;;;;;;; diff --git a/zsh/zshrc b/zsh/zshrc index 521c44c..d1caed2 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -456,6 +456,28 @@ alias keep='noglob keep ' # fi +# curl convenience functions +# ========================== +curl=`which curl` +if [[ -x "$curl" ]]; then + function get { + $curl -H 'x-requested-with: XMLHttpRequest' -i "$1" + } + + function put { + $curl -X PUT -H 'x-requested-with: XMLHttpRequest' "$1" --data "$2" + } + + function post { + $curl -X POST -H 'x-requested-with: XMLHttpRequest' "$1" --data "$2" + } + + function delete { + $curl -X DELETE -H 'x-requested-with: XMLHttpRequest' "$1" + } +fi + + # 9. Completion # =============