Merge branch 'master' of github.com:samsonjs/config
This commit is contained in:
commit
e916f6713f
3 changed files with 24 additions and 15 deletions
30
emacs
30
emacs
|
|
@ -91,7 +91,9 @@
|
||||||
;; chmod u+x files that have a shebang line
|
;; chmod u+x files that have a shebang line
|
||||||
(add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p)
|
(add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p)
|
||||||
|
|
||||||
(add-to-list 'auto-mode-alist '("zsh\(rc\|env\)$" . sh-mode))
|
(add-to-list 'auto-mode-alist '("zshenv$" . sh-mode))
|
||||||
|
(add-to-list 'auto-mode-alist '("zshrc$" . sh-mode))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;;;;;;;;;;
|
;;;;;;;;;;
|
||||||
|
|
@ -136,17 +138,6 @@
|
||||||
(require 'tagify)
|
(require 'tagify)
|
||||||
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;
|
|
||||||
;; mojo (webOS) ;;
|
|
||||||
;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
(require 'mojo)
|
|
||||||
|
|
||||||
;; enable Mojo for CSS, HTML, JS, and JSON files within a Mojo project
|
|
||||||
;; root. Did I forget anything?
|
|
||||||
(mojo-setup-mode-hooks 'css-mode-hook 'js2-mode-hook 'espresso-mode-hook 'html-mode-hook)
|
|
||||||
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;
|
||||||
;; javascript ;;
|
;; javascript ;;
|
||||||
;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;
|
||||||
|
|
@ -161,6 +152,19 @@
|
||||||
;;(add-to-list 'auto-mode-alist '("\\.js$" . espresso-mode))
|
;;(add-to-list 'auto-mode-alist '("\\.js$" . espresso-mode))
|
||||||
(add-to-list 'auto-mode-alist '("\\.json$" . espresso-mode))
|
(add-to-list 'auto-mode-alist '("\\.json$" . espresso-mode))
|
||||||
|
|
||||||
|
(add-hook 'js2-mode-hook 'c-subword-mode)
|
||||||
|
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;
|
||||||
|
;; mojo (webOS) ;;
|
||||||
|
;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
(require 'mojo)
|
||||||
|
|
||||||
|
;; enable Mojo for CSS, HTML, JS, and JSON files within a Mojo project
|
||||||
|
;; root. Did I forget anything?
|
||||||
|
(mojo-setup-mode-hooks 'css-mode-hook 'js2-mode-hook 'espresso-mode-hook 'html-mode-hook)
|
||||||
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; inferior javascript ;;
|
;; inferior javascript ;;
|
||||||
|
|
@ -421,7 +425,7 @@
|
||||||
'(js2-mode-escape-quotes nil)
|
'(js2-mode-escape-quotes nil)
|
||||||
'(js2-strict-inconsistent-return-warning nil)
|
'(js2-strict-inconsistent-return-warning nil)
|
||||||
'(mojo-build-directory "~/Projects/brighthouse/webOS/build")
|
'(mojo-build-directory "~/Projects/brighthouse/webOS/build")
|
||||||
'(mojo-debug t)
|
'(mojo-debug nil)
|
||||||
'(mojo-project-directory "~/Projects/brighthouse/webOS")
|
'(mojo-project-directory "~/Projects/brighthouse/webOS")
|
||||||
'(remote-shell-program "/usr/bin/ssh")
|
'(remote-shell-program "/usr/bin/ssh")
|
||||||
'(save-place t nil (saveplace))
|
'(save-place t nil (saveplace))
|
||||||
|
|
|
||||||
|
|
@ -305,6 +305,11 @@ alias g='git grep'
|
||||||
alias m='git merge'
|
alias m='git merge'
|
||||||
alias s='git status'
|
alias s='git status'
|
||||||
|
|
||||||
|
# macports apachectl
|
||||||
|
if mac; then
|
||||||
|
alias -g apache2ctl=/opt/local/apache2/bin/apachectl
|
||||||
|
fi
|
||||||
|
|
||||||
function svnst() {
|
function svnst() {
|
||||||
tmpfile=/tmp/svn-stat.$$
|
tmpfile=/tmp/svn-stat.$$
|
||||||
[[ -f $tmpfile ]] && rm -f $tmpfile
|
[[ -f $tmpfile ]] && rm -f $tmpfile
|
||||||
|
|
|
||||||
2
zshenv
2
zshenv
|
|
@ -1,4 +1,4 @@
|
||||||
path=($HOME/bin $HOME/apps/bin $HOME/src/tlrobinson-narwhal-b6e4dbb/bin /usr/local/bin /usr/local/sbin /opt/local/bin /opt/local/sbin $path)
|
path=($HOME/bin $HOME/apps/bin $HOME/apps/android-sdk-mac_86/tools $HOME/src/tlrobinson-narwhal-b6e4dbb/bin $HOME/Projects/narwhal/bin /usr/local/bin /usr/local/sbin /opt/local/bin /opt/local/sbin $path)
|
||||||
ZDOTDIR=~/config/zsh
|
ZDOTDIR=~/config/zsh
|
||||||
|
|
||||||
fpath=($fpath $ZDOTDIR/func)
|
fpath=($fpath $ZDOTDIR/func)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue