Related emacs lisp: https://github.com/chrisdone-artificial/emacs-config/blob/754da69c1dea7f21faca5318a2704e613baacf49/config/focus.el#L1
Last active
March 29, 2022 18:07
-
-
Save chrisdone-artificial/89ff606c0e93dc2e39fb29b161b0bd41 to your computer and use it in GitHub Desktop.
macOS send clipboard to Emacs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HostName 192.168.64.2 | |
User chris | |
IdentityFile /Users/chris/.ssh/id_ed25519 | |
# The below enables instantaneous connections instead of 200ms | |
ControlPath /tmp/linux-socket | |
ControlPersist yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
payload=$(LANG=en_US.UTF-8 pbpaste | base64) | |
ssh linux "/home/chris/.nix-profile/bin/emacsclient -e '(update-clipboard \"$payload\")'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment