Guest User

Untitled

a guest
Apr 25th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. (defvar azh/carbon-emacs-shell-program-name "iTerm")
  2. (defun azh/close-frame ()
  3. (ignore-errors (make-frame-invisible azh/frame))
  4. (when (and (featurep 'carbon-emacs-package)
  5. (fboundp 'do-applescript))
  6. (let ((applescript (format "tell application \"%s\"
  7. activate
  8. end" azh/carbon-emacs-shell-program-name)))
  9. (funcall 'do-applescript applescript))))
Add Comment
Please, Sign In to add comment