changeset 271:79a64ef88a6b

Merge
author Augie Fackler <durin42@gmail.com>
date Mon, 12 Dec 2011 11:47:34 -0600
parents 1e2125a577da (diff) 393535e99b8a (current diff)
children 02b635053e8f
files .elisp/settings/50.preferences.el
diffstat 3 files changed, 23 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/.elisp/settings/40.modes.el
+++ b/.elisp/settings/40.modes.el
@@ -31,7 +31,11 @@ point."
 (defun af-go-hook ()
   ;; enable tabs
   (setq tab-width 2)
-  (setq-default indent-tabs-mode t))
+  (setq-default indent-tabs-mode t)
+  (make-variable-buffer-local 'whitespace-style)
+  (setq whitespace-style '(trailing lines-tail indentation trailing empty))
+  (message "Fixed whitespace style")
+  )
 
 
 (let ((go-emacs (concat (getenv "GOROOT") "/misc/emacs")))
--- a/.elisp/settings/50.preferences.el
+++ b/.elisp/settings/50.preferences.el
@@ -77,3 +77,6 @@
 
 ;; Disable VC plumbing since I don't really use it that much anyway
 (setq vc-handled-backends nil)
+
+;; use aspell
+(setq-default ispell-program-name "aspell")
--- a/.zfun/_hg
+++ b/.zfun/_hg
@@ -165,6 +165,7 @@ typeset -A _hg_cmd_globals
 _hg_labels() {
   _hg_tags "$@"
   _hg_bookmarks "$@"
+  _hg_branches "$@"
 }
 
 _hg_tags() {
@@ -191,6 +192,17 @@ typeset -A _hg_cmd_globals
   (( $#bookmarks )) && _describe -t bookmarks 'bookmarks' bookmarks
 }
 
+_hg_branches() {
+  typeset -a branches
+  local branch
+
+  _hg_cmd branches | while read branch
+  do
+    branches+=(${branch/ #    [0-9]#:*})
+  done
+  (( $#branches )) && _describe -t branches 'branches' branches
+}
+
 # likely merge candidates
 _hg_mergerevs() {
   typeset -a heads
@@ -360,8 +372,8 @@ typeset -A _hg_cmd_globals
     '(--help -h)'{-h,--help}'[display help and exit]'
     '--debug[debug mode]'
     '--debugger[start debugger]'
-    '--encoding[set the charset encoding (default: UTF8)]'
-    '--encodingmode[set the charset encoding mode (default: strict)]'
+    '--encoding[set the charset encoding]'
+    '--encodingmode[set the charset encoding mode]'
     '--lsprof[print improved command execution profile]'
     '--traceback[print traceback on exception]'
     '--time[time how long the command takes]'
@@ -617,6 +629,7 @@ typeset -A _hg_cmd_globals
   '(--only-merges -m)'{-m,--only-merges}'[show only merges]' \
   '(--patch -p)'{-p,--patch}'[show patch]' \
   '(--prune -P)'{-P+,--prune}'[do not display revision or any of its ancestors]:revision:_hg_labels' \
+  '(--branch -b)'{-b+,--branch}'[show changesets within the given named branch]:branch:_hg_branches' \
   '*:files:_hg_files'
 }