Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Commit

Permalink
Remove custom switching code
Browse files Browse the repository at this point in the history
Since git-commit-modes now always uses an emacsclient instance it'll
magically switch away to whichever app I used last when committing. This
isn't ideal.
  • Loading branch information
bradwright committed Aug 17, 2013
1 parent b3fc99e commit 8c3d4aa
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions init-utils.el
Expand Up @@ -124,20 +124,6 @@ by using nxml's indentation rules."
(make-frame-invisible nil t))
(bw-kill-emacs)))

(defun bw-switch-to-last-mac-app ()
"Switches to the last used app"
(interactive)
(when (and *is-a-mac* window-system)
(do-applescript "tell application \"System Events\"
tell process \"finder\"
activate
keystroke tab using {command down}
end tell
end tell")))

(defadvice git-commit-end-session (after server-buffer-done-restore-previous-window activate)
(bw-switch-to-last-mac-app))

(defun bw-kill-emacs ()
"If this buffer is a client, just kill it, otherwise confirm
the quit."
Expand Down

0 comments on commit 8c3d4aa

Please sign in to comment.