about summary refs log tree commit diff
path: root/emacs.d
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2018-09-04T18·53-0400
committerWilliam Carroll <wpcarro@gmail.com>2018-09-04T18·53-0400
commit3dadd97ef3d8e704a7febeeafea81de8c5183025 (patch)
tree1d00d087d06af32e7b475c1c1afa8fc2c5702c63 /emacs.d
parent6393e47c778725864c6141b369a2119eeb0774f2 (diff)
Center matching line when focusing from iTerm
Improve the UX by centering the focused line verically.
Diffstat (limited to 'emacs.d')
-rwxr-xr-xemacs.d/open-from-iterm.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs.d/open-from-iterm.sh b/emacs.d/open-from-iterm.sh
index cf7d7a2ed3bd..fdb4257965cb 100755
--- a/emacs.d/open-from-iterm.sh
+++ b/emacs.d/open-from-iterm.sh
@@ -31,7 +31,7 @@ e "file:   $file"
 e "number: $number"
 
 if ! [ -z "$number" ]; then
-  $emacs -n -e "(find-file \"$file\")" "(goto-line $number)"
+  $emacs -n -e "(find-file \"$file\")" "(goto-line $number)" "(call-interactively #'evil-scroll-line-to-center)"
 else
   $emacs -n -e "(find-file \"$file\")"
 fi