Add emacs console helper scripts

This commit is contained in:
2025-09-08 21:16:56 +02:00
parent 7279a53bc0
commit 7cc80e8cf4
14 changed files with 385 additions and 16 deletions

17
bin/emacs-dired Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
# Launch Emacs in terminal mode with Dired file manager
# Accepts optional directory argument
if [ $# -eq 0 ]; then
# No arguments, use current directory
EMACS_NO_DESKTOP=1 emacs -nw --eval "(dired \".\")"
else
# Use specified directory
if [ -d "$1" ]; then
DIR=$(realpath "$1")
EMACS_NO_DESKTOP=1 emacs -nw --eval "(dired \"$DIR\")"
else
echo "Error: $1 is not a directory"
exit 1
fi
fi