summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDante Catalfamo2021-12-17 23:34:11 -0500
committerDante Catalfamo2021-12-17 23:34:11 -0500
commitb2f6600aa8b280fd2d1ec411306ac445009558d9 (patch)
treebf5aa434b527372fb603640dc72111e24b90037c
parent37895480b36e3cad7b57d52b27fae409eda181bf (diff)
downloadblog-b2f6600aa8b280fd2d1ec411306ac445009558d9.tar.gz
blog-b2f6600aa8b280fd2d1ec411306ac445009558d9.tar.bz2
blog-b2f6600aa8b280fd2d1ec411306ac445009558d9.zip
Add Automator steps to emacsclient on macos
-rw-r--r--content/posts/using-emacsclient-on-macos/emacsclient automator.pngbin0 -> 641723 bytes
-rw-r--r--content/posts/using-emacsclient-on-macos/index.org30
2 files changed, 30 insertions, 0 deletions
diff --git a/content/posts/using-emacsclient-on-macos/emacsclient automator.png b/content/posts/using-emacsclient-on-macos/emacsclient automator.png
new file mode 100644
index 0000000..80441b9
--- /dev/null
+++ b/content/posts/using-emacsclient-on-macos/emacsclient automator.png
Binary files differ
diff --git a/content/posts/using-emacsclient-on-macos/index.org b/content/posts/using-emacsclient-on-macos/index.org
index c98e4b9..c0513ab 100644
--- a/content/posts/using-emacsclient-on-macos/index.org
+++ b/content/posts/using-emacsclient-on-macos/index.org
@@ -67,3 +67,33 @@ daemon if it isn't already running.
Now all I have to do is press @@html:<kbd>⌃</kbd> + <kbd>⇧</kbd> + <kbd>⌘</kbd> + <kbd>E</kbd>@@
and a new Emacs window pops up with no startup delay!
+
+It's also possible to create an "application" shortcut for
+=emacsclient= using [[https://support.apple.com/en-ca/guide/automator/welcome/mac][Automator]].
+
+Create a new automation as an Application with the Run Shell Script
+step. Then add the following as the contents of the script.
+
+#+begin_src shell
+/opt/homebrew/bin/emacsclient \
+ --no-wait \
+ --quiet \
+ --suppress-output \
+ --create-frame \
+ "$@"
+#+end_src
+
+Replacing =/opt/homebrew/bin/emacsclient= with the path to your
+=emacsclient= if it's located elsewhere.
+
+Then set =Pass input= to =as arguments=.
+
+#+ATTR_HTML: :title Automator emacsclient script
+#+ATTR_HTML: :alt Automator emacsclient script
+[[file:emacsclient automator.png]]
+
+Finally place the Automator application in your =/Applications=
+directory.
+
+You should now be able to open Emacsclient through spotlight and
+associate it with filetypes.