dotfiles/.local/bin/scripts/emacs-line
2023-09-27 15:37:44 +02:00

6 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}"