Center matching line when focusing from iTerm

Improve the UX by centering the focused line verically.
This commit is contained in:
William Carroll 2018-09-04 14:53:49 -04:00
parent 6393e47c77
commit 3dadd97ef3

View file

@ -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