From 7ab9589867fe2c25e905e98853e7aebcf30018a5 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 19 Nov 2014 15:26:04 -0800 Subject: [PATCH] Dont do osascript for focus emacs if not in osx. --- dotfiles/emacs.d | 2 +- dotfiles/lib/shellrc/emacs.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/emacs.d b/dotfiles/emacs.d index bb4f4f08..37df87cf 160000 --- a/dotfiles/emacs.d +++ b/dotfiles/emacs.d @@ -1 +1 @@ -Subproject commit bb4f4f083fe832abed02f6e6d1edf4e3fd04a401 +Subproject commit 37df87cf386d3645b2a88ee40d2451d1063423ba diff --git a/dotfiles/lib/shellrc/emacs.sh b/dotfiles/lib/shellrc/emacs.sh index 4df19aba..dc57c10b 100644 --- a/dotfiles/lib/shellrc/emacs.sh +++ b/dotfiles/lib/shellrc/emacs.sh @@ -51,7 +51,7 @@ function emacs_make_frame_if_none_exists { } function focus_emacs { - osascript -e 'tell application "Emacs" to activate' + is_osx && osascript -e 'tell application "Emacs" to activate' } function emacs_get_running_instances {