Last active
December 28, 2015 00:39
-
-
Save yasuyk/7414659 to your computer and use it in GitHub Desktop.
Focus Emacs(emacs -nw) on OS X Terminal.app with "Edit with 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
(when (and (eq system-type 'darwin) (eq window-system nil)) | |
(defun open-os-x-terminal () | |
(shell-command "open -a /Applications/Utilities/Terminal.app")) | |
(add-hook 'edit-server-start-hook 'open-os-x-terminal)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this to work around the the fact that edit-server-start-hook is a little too early? I was about to accept a patch that added a edit-server-mode-hook once all frames/windows have been created.