Emacs: grep-find ignoring .svn folders.

Homeinit: em and emc fixes.
master
Pierre Neidhardt 2013-05-27 13:06:33 +02:00
parent 3025285ef2
commit ab77f746ba
3 changed files with 7 additions and 4 deletions

View File

@ -38,7 +38,7 @@ auto-shrink-images=true
print-backgrounds=false
enable-caret-browsing=false
enable-scripts=true
adblocker-filterlist=/home/peter/.config/dwb/adblock_lists
adblocker-filterlist=/home/morpheo/neidhard/.config/dwb/adblock_lists
proxy=false
user-agent=
full-content-zoom=true

View File

@ -184,3 +184,6 @@
(setq org-agenda-files '("~/todo.org"))
(setq org-enforce-todo-dependencies t))
;; Tell grep-find to skip VCS folders.
(grep-apply-setting 'grep-find-command "find . -name \"*.svn\" -prune -o -type f -print0 | \"xargs\" -0 -e grep -nH -e ")

View File

@ -19,7 +19,7 @@ echo
## escape sequences with quotes and so on.
EMFILE='/usr/local/bin/em'
EMCFILE='/usr/local/bin/emc'
if [ -n "$(command -v emacs)" ] && [ ! -f "$EMFILE" ]; then
if [ -n "$(command -v emacs)" ] && [ ! -f "$EMFILE" ] || [ ! -f "$EMCFILE" ]; then
echo "==> Emacs (press Ctrl-D to skip)"
if [ -z "$(command -v base64)" ]; then
@ -30,10 +30,10 @@ bHNlCiAgICBJU19HUkFQSElDQUw9JChlbWFjcyAtYmF0Y2ggLVEgLS1ldmFsPScoaWYgKGZib3Vu
ZHAgJyInIid0b29sLWJhci1tb2RlKSAobWVzc2FnZSAiMSIpIChtZXNzYWdlICIwIikpJyAyPiYx
KQpmaQoKaWYgWyAkSVNfR1JBUEhJQ0FMIC1lcSAxIF07IHRoZW4KICAgIGVtYWNzY2xpZW50IC1h
ICIiIC1uYyAiJEAiCmVsc2UKICAgIGVtYWNzY2xpZW50IC1hICIiIC10ICIkQCIKZmkK
' | base64 -d > "'"'"$EMFILE"'"'""
' | base64 -d > "'"'"$EMFILE"'"'" && chmod 755 "'"'"$EMFILE"'"'""
sudo sh -c "umask 022 && echo 'IyEvYmluL3NoCmVtYWNzY2xpZW50IC1hICIiIC10ICIkQCIK
' | base64 -d > "'"'"$EMCFILE"'"'""
' | base64 -d > "'"'"$EMCFILE"'"'" && chmod 755 "'"'"$EMFILE"'"'""
fi
fi