From 53b5c6f41f9139c67eb347b5f7b9c35477ab6650 Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Sat, 8 Nov 2025 17:09:47 -0500 Subject: emacs scripts and vterm improvements --- scripts/newemacs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/newemacs (limited to 'scripts/newemacs') diff --git a/scripts/newemacs b/scripts/newemacs new file mode 100755 index 0000000..6b7052c --- /dev/null +++ b/scripts/newemacs @@ -0,0 +1,14 @@ +#!/bin/sh +project_name=$(swenu -coil 10 -p "New Workspace:") +if [ $? -ne 0 ]; then + exit 1 +fi + +project_path=$(getprojects | swenu -coil 10 -p "Directory:" -s "$project_name") + +emacs --daemon="$project_name" +if [ -z "$project_path" ]; then + emacsclient -c -s "$project_name" +else + emacsclient -c -s "$project_name" -e "(dired \"$project_path\")" +fi -- cgit v1.2.3