From aa3d2442c71b6318050a9e32d895331c6270f078 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Mon, 10 Jun 2013 11:10:33 +0200 Subject: [PATCH 1/3] Homeinit: fixed emc access rights. --- .scripts/homeinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scripts/homeinit b/.scripts/homeinit index 7b21dbb0..8705f932 100755 --- a/.scripts/homeinit +++ b/.scripts/homeinit @@ -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 From 8e3515d0ac36837845d2327cf219e8bf70d9bdbb Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Mon, 10 Jun 2013 18:11:04 +0200 Subject: [PATCH 2/3] Ranger set to use meta info instead of img2txt (which is rather useless imo). --- .config/ranger/scope.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/ranger/scope.sh b/.config/ranger/scope.sh index 70dc2f61..c5f38467 100755 --- a/.config/ranger/scope.sh +++ b/.config/ranger/scope.sh @@ -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 From ae0992addd776396bcfa2d3ae02b417b7783a3a1 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Mon, 10 Jun 2013 18:11:30 +0200 Subject: [PATCH 3/3] Emacs: fix for space in file name in python compilation. --- .emacs.d/modes.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.emacs.d/modes.el b/.emacs.d/modes.el index d8a8d482..c2988597 100644 --- a/.emacs.d/modes.el +++ b/.emacs.d/modes.el @@ -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)