Merge branch 'master' of bitbucket.org:/ambrevar/home-config

master
Pierre Neidhardt 2013-06-10 18:47:46 +02:00
commit 1101b94581
3 changed files with 6 additions and 4 deletions

View File

@ -92,8 +92,10 @@ case "$mimetype" in
# Ascii-previews of images:
image/*)
img2txt --gamma=0.6 --width="$width" "$path" && exit 4 || exit 1;;
## Alternative light preview.
# img2txt --gamma=0.6 --width="$width" "$path" && exit 4 || exit 1;;
exiftool "$path" && exit 5
# # Use sed to remove spaces so the output fits into the narrow window
try mediainfo "$path" && { dump | trim | sed 's/ \+:/: /;'; exit 5; } || exit 1;;
# if have mediainfo; then
# mediainfo "$path" | sed 's/ \+:/: /;'
# success && exit 5

View File

@ -458,7 +458,7 @@ properly escaped with double-quotes in case it has spaces."
(defun python-my-compile ()
"Use compile to run python programs."
(interactive)
(compile (concat python-compiler " " buffer-file-name))
(compile (concat python-compiler " \"" buffer-file-name "\""))
)
(setq compilation-scroll-output t)
(local-set-key "\C-c\C-c" 'python-my-compile)

View File

@ -33,7 +33,7 @@ ICIiIC1uYyAiJEAiCmVsc2UKICAgIGVtYWNzY2xpZW50IC1hICIiIC10ICIkQCIKZmkK
' | base64 -d > "'"'"$EMFILE"'"'" && chmod 755 "'"'"$EMFILE"'"'""
sudo sh -c "umask 022 && echo 'IyEvYmluL3NoCmVtYWNzY2xpZW50IC1hICIiIC10ICIkQCIK
' | base64 -d > "'"'"$EMCFILE"'"'" && chmod 755 "'"'"$EMFILE"'"'""
' | base64 -d > "'"'"$EMCFILE"'"'" && chmod 755 "'"'"$EMCFILE"'"'""
fi
fi