summaryrefslogtreecommitdiff
path: root/emacs-anywhere
diff options
context:
space:
mode:
Diffstat (limited to 'emacs-anywhere')
-rwxr-xr-xemacs-anywhere8
1 files changed, 8 insertions, 0 deletions
diff --git a/emacs-anywhere b/emacs-anywhere
new file mode 100755
index 0000000..396f643
--- /dev/null
+++ b/emacs-anywhere
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+emacsclient -c -e '(anywhere-create)' "$@"
+
+xdotool=@XDOTOOL_BIN@
+
+$xdotool windowactivate --sync "$($xdotool getactivewindow)"
+$xdotool key --clearmodifiers ctrl+v