Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions bin/omarchy-launch-editor
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ case "$EDITOR" in
nvim | vim | nano | micro | hx | helix)
exec omarchy-launch-tui "$EDITOR" "$@"
;;
emacs)
# If emacs.service is active open a new frame instead of a whole new emacs.
if systemctl --user is-active emacs.service >/dev/null 2>&1; then
exec setsid uwsm-app -- emacsclient -n -r "$@"
else
exec setsid uwsm-app -- emacs "$@"
fi
;;
*)
exec setsid uwsm-app -- "$EDITOR" "$@"
;;
Expand Down