emacs: gnus: don’t destroy other windows
[~bandali/configs] / .local / bin / zathura-sync
... / ...
CommitLineData
1#!/bin/sh
2
3pos="$1"
4pdffile="$2"
5zathura --synctex-forward "$pos" "$pdffile" || \
6 (
7 zathura -x "emacsclient --eval '(progn (switch-to-buffer (file-name-nondirectory \"%{input}\")) (goto-line %{line}))'" "$pdffile" &
8 sleep 1; zathura --synctex-forward "$pos" "$pdffile" )