I am trying to evaluate lisp expressions from the terminal. So far I have tried nyxt --remote --eval (my-expression), but this does not seem to evaluate it as if I ran it from the session. For example, (delete-current-buffer) does not delete the current buffer.
Am I missing something? How do I get expressions ran through the terminal to behave as if I ran them directly in the session?
However, evaluating through the terminal is noticeably slower than for example through slime. Also, the window always focuses after an expression is evaluated this way. Is this also fixable?
What I am trying to do is getting voice control software (talon voice) to work smoothly with the browser, so I am having it execute commands through the shell. The current way I am doing it is having emacs connected to nyxt through the swank server and using slime through emacsclient --eval, but this necessitates both emacs running and it having an established connection to nyxt already. Letting talon communicate directly with nyxt and having it run as smoothly as evaluating the expressions through slime would be very nice.