From 001ac0517a6956899160bd103e45f4f70cffad4c Mon Sep 17 00:00:00 2001 From: Steph Enders Date: Thu, 30 Mar 2023 11:04:43 -0400 Subject: Setup repo and define em script Create bin stow repo and emacsclient helper script --- em | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 em (limited to 'em') diff --git a/em b/em new file mode 100755 index 0000000..f4b2d44 --- /dev/null +++ b/em @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +# Run emacs as a GUI - creating a new frame + +## default file that can be configured as needed +DEFAULT_EMACS_FILE=~/.emacs.d/.default_file + +if [ $# -eq 0 ]; then + if [ -L $DEFAULT_EMACS_FILE ]; then + emacsclient -n -c $DEFAULT_EMACS_FILE + else + emacsclient -n -c + fi +else + emacsclient -n $@ +fi -- cgit v1.2.3-54-g00ecf