diff options
author | William Carroll <wpcarro@gmail.com> | 2018-09-04T18·53-0400 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2018-09-04T18·53-0400 |
commit | 3dadd97ef3d8e704a7febeeafea81de8c5183025 (patch) | |
tree | 1d00d087d06af32e7b475c1c1afa8fc2c5702c63 | |
parent | 6393e47c778725864c6141b369a2119eeb0774f2 (diff) |
Center matching line when focusing from iTerm
Improve the UX by centering the focused line verically.
-rwxr-xr-x | emacs.d/open-from-iterm.sh | 2 |
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 |