dotfiles/.local/bin/scripts/emacs-line

7 lines
194 B
Plaintext
Raw Normal View History

#!/bin/sh
# https://ihp.digitallyinduced.com/Guide/editors.html#using-ihp-with-emacs
path="${1%%:*}"
col="${1##*:}"
line="${1%:*}"; line="${line##*:}"
emacsclient -n +"${line}:${col}" "${path}"