Make emacs the default image viewer

This commit is contained in:
BirDt_ 2025-09-24 19:10:55 +08:00
parent e34d6dd120
commit 044360e2b7
3 changed files with 31 additions and 0 deletions

6
emacs-open Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
if [ -n "$*" ]; then
exec /usr/bin/emacsclient --alternate-editor= --display="$DISPLAY" "$@"
else
exec emacsclient --alternate-editor= --create-frame
fi