I'm trying to send commands to a shell buffer. I'm able to send the command "hello world" by calling this:

(defun exec-command ()
  (interactive)
  (set-buffer (get-buffer "*shell*"))
  (insert "hello world"))

But I can't figure out how to send over the "enter key" to actually make it execute the shell command. I'm an emacs lisp newbie!

Thanks everybody!

- Corey


Hotmail: Free, trusted and rich email service. Get it now.