changeset 208:50244cf921fb

Merge
author Augie Fackler <durin42@gmail.com>
date Wed, 12 May 2010 17:48:01 -0500
parents c965d5dbd868 (diff) 226d1ac6acb6 (current diff)
children c28a1e2c746a
files
diffstat 3 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/.elisp/settings/50.localfuncs.el
+++ b/.elisp/settings/50.localfuncs.el
@@ -31,6 +31,18 @@ spends an eternity in a regex if you mak
 (global-set-key [(control c)(t)(=)] 'af-generic-diff-repo)
 (global-set-key [(control c)(d)] 'af-generic-diff-repo)
 
+(defun af-rotate-list (l)
+  "Move the head of l to the end of the list."
+  (append (cdr l) (list (car l))))
+
+(defun af-spacejoin (l)
+  "Given list of strings l, join them with spaces and return.
+
+Returns the empty string if l is nil."
+  (if l
+      (reduce '(lambda (x &optional y) (concat x " " (if y y))) l)
+    ""))
+
 (defun pyflakes-this-buffer ()
   (interactive)
   (compilation-start (concat "cd  "
--- a/.hgignore
+++ b/.hgignore
@@ -3,11 +3,12 @@ syntax:re
 # complex regex to ignore all but what I want from dotfiles
 ^\.(?!bashrc$|best_unicode|elisp|emacs$|gitconfig$|hg|inputrc$|ipython|irbrc$|pdbrc\.py$|python|screenrc$|shell\.d|vim|zfun|zsh)
 
-# above RE fails to exclude viminfo
+# above RE fails to exclude some ignorable things
 ^\.viminfo$
 ^\.hg\.
 ^\.ipython/db$
 ^\.python-eggs$
+^\.hgrc-[^/]+$
 
 # above RE fails to exclude history or machine-specific files
 ^\..*(?=history|machine).*
--- a/.shell.d/50.common_env.sh
+++ b/.shell.d/50.common_env.sh
@@ -21,4 +21,4 @@ insert_element_into_var /opt/hg/lib/pyth
 
 insert_path_element /opt/hg/bin
 
-export HGRCPATH="$HOME/.hgrc:$HOME/.private/hgrc"
+export HGRCPATH="$HOME/.hgrc:$HOME/.private/hgrc:$HOME/.hgrc-$(hostname)"