LoginSignup
4
3

More than 3 years have passed since last update.

[MacOS]emacsclient でファイルを開いて Emacs にフォーカスをあてる

Posted at

他のシェルでもできると思うけど、とりあえず fish 表記です。

function e
  # ファイルを開く
  set -l emacsclient /Applications/Emacs.app/Contents/MacOS/bin/emacsclient
  $emacsclient -e "(find-file \"$argv\")"

  # Emacs をアクティベートする
  echo 'tell application "Emacs" to activate window' | osascript
end

参考にしたページ

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3