about summary refs log tree commit diff
path: root/configs/shared/emacs/.emacs.d
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-20T18·36+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-20T18·36+0000
commita69e21a74fa5411d738f158793b2b69ff180f755 (patch)
tree7db0ff8b6fb2eb767740372cb94cb8f5ff9adbd0 /configs/shared/emacs/.emacs.d
parent0039022c6ea20cf577702420db073aa86b0c01b8 (diff)
Drop support for open-from-iterm since OSX support was dropped
This should have been removed a few commits back. Oh well... dirty laundry
Diffstat (limited to 'configs/shared/emacs/.emacs.d')
-rwxr-xr-xconfigs/shared/emacs/.emacs.d/open-from-iterm.sh37
1 files changed, 0 insertions, 37 deletions
diff --git a/configs/shared/emacs/.emacs.d/open-from-iterm.sh b/configs/shared/emacs/.emacs.d/open-from-iterm.sh
deleted file mode 100755
index fdb4257965cb..000000000000
--- a/configs/shared/emacs/.emacs.d/open-from-iterm.sh
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-
-# To set this up, open iTerm2 -> Preferences -> Profiles -> Advanced
-# In the "Semantic History" section, choose "Always run command..." from the
-# dropdown and set the input text to:
-# `~/dotfiles/emacs.d/open-from-iterm.sh \1`
-
-# Alias applications since $PATH is unavailable
-emacs=/usr/local/bin/emacsclient
-grep=/usr/local/bin/ggrep
-tmux=/usr/local/bin/tmux
-realpath=/Users/wpcarro/.nix-profile/bin/realpath
-
-e() {
-  # Useful debugger when paired with `tail -f /tmp/debug.log`
-  echo "$@" >>/tmp/debug.log
-}
-
-# Need to query Tmux since iTerm's \5 variable doesn't work as expected with
-# Tmux.
-pwd=$($tmux display -pF '#{pane_current_path}')
-cd "$pwd" || exit
-path=$($realpath "$1")
-
-# This is a bit of a hack, but we cannot rely on iTerm to regex our paths
-file=$($grep -P -o '^[^:]+' <<<"$path")
-number=$($grep -P -o '(?<=:)[0-9]+(?=:[0-9]+:$)' <<<"$path")
-
-# Debugging
-e "file:   $file"
-e "number: $number"
-
-if ! [ -z "$number" ]; then
-  $emacs -n -e "(find-file \"$file\")" "(goto-line $number)" "(call-interactively #'evil-scroll-line-to-center)"
-else
-  $emacs -n -e "(find-file \"$file\")"
-fi