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

19
bin/emacs-dev Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
# Launch Emacs in terminal mode with development environment
# Accepts optional file/directory argument
if [ $# -eq 0 ]; then
# No arguments, just start with dev mode
EMACS_NO_DESKTOP=1 emacs -nw --eval "(progn
(when (fboundp 'enable-dev-mode-modern)
(enable-dev-mode-modern))
(when (fboundp 'treemacs)
(treemacs)))"
else
# Open specified file/directory
EMACS_NO_DESKTOP=1 emacs -nw "$@" --eval "(progn
(when (fboundp 'enable-dev-mode-modern)
(enable-dev-mode-modern))
(when (fboundp 'treemacs)
(treemacs)))"
fi