diff options
-rw-r--r-- | README.org | 25 | ||||
-rwxr-xr-x | em | 16 |
2 files changed, 41 insertions, 0 deletions
diff --git a/README.org b/README.org new file mode 100644 index 0000000..36eaab0 --- /dev/null +++ b/README.org @@ -0,0 +1,25 @@ +* Custom Binary Files + +This is a place to stow ~/usr/local/bin~ programs/scripts. + +** TODO Installing programs + +I haven't set it up yet but LIKELY it's just: + +#+begin_src shell + $ stow . +#+end_src + +** Programs + +*** em + +~em~ is an ~emacsclient~ script that makes it easier to envoke ~emacsclient~ in the necessary states. ~nem~ is setup as a bash alias for ~emacsclient -nw~ but this file allows running as a GUI. + +This requires ~systemctl --user enable|start emacs~ or ~emacs --daemon~ to have been run. + +** LICENSE + +I've licensed all scripts under 0BSD here. Most of the scripts here are just bash scripts and other simple files that you should feel free to use. Attribute is nice but not needed. I can't guarantee any of these to /actually work/ outside of my systems - so take caution! + +View [[https://opensource.org/license/0bsd/][Zero Clause BSD License]] site. @@ -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 |