Skip to content

Instantly share code, notes, and snippets.

@imakado
Created December 10, 2009 01:37
Show Gist options
  • Save imakado/253029 to your computer and use it in GitHub Desktop.
Save imakado/253029 to your computer and use it in GitHub Desktop.
(defvar azh/carbon-emacs-shell-program-name "iTerm")
(defun azh/close-frame ()
(ignore-errors (make-frame-invisible azh/frame))
(when (and (featurep 'carbon-emacs-package)
(fboundp 'do-applescript))
(let ((applescript (format "tell application \"%s\"
activate
end" azh/carbon-emacs-shell-program-name)))
(funcall 'do-applescript applescript))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment