How to write a function (it would go into .emacs) that sends some command to shell buffer (and initializes shell if needed)?
Something like:
(defun ()
(interactive)
(shell)
(sh-send-text "ssh my.server.com"))
(I currently do this via tramp and sshx but it is slower than if I manually open shell and just type in the ssh command. So I want to speed this up with a helper function).