From 3ea5230108532502b1e20c6411abe840ba29b459 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Wed, 16 Dec 2009 13:20:50 -0800 Subject: [PATCH 1/2] enable subword-mode for javascript. --- emacs | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/emacs b/emacs index aef4042..fc41d9e 100644 --- a/emacs +++ b/emacs @@ -134,17 +134,6 @@ (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 ;; ;;;;;;;;;;;;;;;; @@ -156,6 +145,19 @@ ;;(add-to-list 'auto-mode-alist '("\\.js$" . 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) + ;;;;;;;;;;;; ;; markup ;; From c9ace6b1e26c2fc5e05b43bfe665be72f4d5a48e Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Tue, 26 Jan 2010 15:29:17 -0800 Subject: [PATCH 2/2] resolved merge conflicts --- emacs | 8 +++++--- zsh/zshrc | 5 +++++ zshenv | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/emacs b/emacs index a8bdb6c..21c1798 100644 --- a/emacs +++ b/emacs @@ -91,7 +91,9 @@ ;; chmod u+x files that have a shebang line (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)) + ;;;;;;;;;; @@ -113,7 +115,7 @@ '(lambda () (inf-ruby-keys) (ruby-electric-mode) - (c-subword-mode))) + (c-subword-mode))) (autoload 'rubydb "rubydb3x" "Ruby debugger" t) @@ -418,7 +420,7 @@ '(js2-mode-escape-quotes nil) '(js2-strict-inconsistent-return-warning nil) '(mojo-build-directory "~/Projects/brighthouse/webOS/build") - '(mojo-debug t) + '(mojo-debug nil) '(mojo-project-directory "~/Projects/brighthouse/webOS") '(remote-shell-program "/usr/bin/ssh") '(save-place t nil (saveplace)) diff --git a/zsh/zshrc b/zsh/zshrc index 63de172..2b3bf61 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -305,6 +305,11 @@ alias g='git grep' alias m='git merge' alias s='git status' +# macports apachectl +if mac; then + alias -g apache2ctl=/opt/local/apache2/bin/apachectl +fi + function svnst() { tmpfile=/tmp/svn-stat.$$ [[ -f $tmpfile ]] && rm -f $tmpfile diff --git a/zshenv b/zshenv index f7c4690..b37c8c7 100644 --- a/zshenv +++ b/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 fpath=($fpath $ZDOTDIR/func)