Now I'm using Emacs for reading email again, there's a small problem.
Long URLs are broken across lines with a backslash/newline pair. This
makes them a bit tricky to paste into Iceweasel or whatever.
un-backslashify-selection reads the selection, kills the backslashes,
and rewrites the selection. This command is bound to M5-F7, so pasting
is fairly painless. (An extension is the right answer, but that's way
more work.)
KeyDown S5 Up area move 0 -1
KeyDown S5 Left area move -1 0
KeyDown S5 Right area move 1 0
KeyDown S5 Up area move 0 -1
KeyDown S5 Left area move -1 0
KeyDown S5 Right area move 1 0
+KeyDown 5 F7 exec un-backslashify-selection
KeyDown 5 F8 exec xatom set XINIT_COMMAND :terminal
KeyDown 5 F9 exec xatom set XINIT_COMMAND :ask-run
KeyDown 5 F10 exec xatom set XINIT_COMMAND :ask-command
KeyDown 5 F8 exec xatom set XINIT_COMMAND :terminal
KeyDown 5 F9 exec xatom set XINIT_COMMAND :ask-run
KeyDown 5 F10 exec xatom set XINIT_COMMAND :ask-command
hyperspec"
[ "$xstuff" ] && scripts="$scripts
xinitcmd
hyperspec"
[ "$xstuff" ] && scripts="$scripts
xinitcmd
+ un-backslashify-selection
xshutdown"
echo "Installing scripts..."
mkdir -p $HOME$sub/bin
xshutdown"
echo "Installing scripts..."
mkdir -p $HOME$sub/bin
--- /dev/null
+#! /bin/sh
+
+xsel -o | sed '
+ s:\\::g
+ H
+$ !d
+
+ x
+ s:\
+::g
+' | xsel -i