I have the following YAML for tmuxinator:
# ~/.tmuxinator/st.yml
name: st
root: ~/learn/gnu-smalltalk
attach: false
# Runs before everything. Use it to start daemons etc.
on_project_start:
- emacs --daemon=gst --title=GST
- export EDITOR="emacsclient --server-file=gst -c -n"
- export VISUAL=$EDITOR
- $EDITOR &;
- gst-load -iI shampoo.im Shampoo
- gst-remote -I shampoo.im --daemon
- gst-remote -e "Shampoo.ShampooServer startOn: 9090 login: 'st' pass: 'st'"
on_project_exit:
- tmux -CC attach -t st
windows:
- console-emacs-dev:
- export EDITOR="emacsclient --server-file=gst -c -n"
- export VISUAL=$EDITOR
- echo "A currar"
- exercism:
- export EDITOR="emacsclient --server-file=gst -c -n"
- export VISUAL=$EDITOR
I have two errors that I cannot solve, first is:
st.yml 14 61 error mapping values are not allowed in this context (yaml-ruby)
I tried to scape the character ':',
gst-remote -e "Shampoo.ShampooServer startOn: 9090 login\: 'st' pass\: 'st'"
but the same occurs
doesn't work.
Although YAML escape sequences are a superset of those of the C language, you still cannot escape
:.Assuming that
gst-remoteis executed through some shell, what you need to do is escape the backslash:I would not try and much around with
&and assume there is a shell being called that properly processes that. Instead useemacsclient's option--no-wait:You should also use
.yamlas extension for your YAML files. Not only has that been the recommended extension for YAML since 2006, it also prevents confusion with files in the YML format.