merged home changes (c-subword-mode, drag-stuff)
This commit is contained in:
parent
3b7a5c19aa
commit
65b343b260
2 changed files with 29 additions and 5 deletions
12
emacs
12
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
|
||||
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;
|
||||
|
|
|
|||
22
zsh/zshrc
22
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
|
||||
# =============
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue