Created
December 21, 2011 11:12
-
-
Save magnars/1505658 to your computer and use it in GitHub Desktop.
Using PeepOpen with Cocoa Emacs
This file contains 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
on open these_items | |
set this_item to item 1 of these_items | |
set file_path to (the POSIX path of this_item) | |
tell application "Terminal" | |
do shell script "/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -n " & file_path & "" | |
end tell | |
end open |
This file contains 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
;; Replace the old shell-command-to-string function call in peepopen.el | |
;; or eproject-peepopen.el with this, so that PeepOpen uses EmacsClient.app | |
;; to open the selected file. | |
(shell-command-to-string | |
(format "open 'peepopen://%s?editor=%s'" | |
(expand-file-name root) | |
"EmacsClient")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment