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

7 lines
194 B
Bash
Executable File

#!/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}"