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