Add REPL support for beginning-of-defun and end-of-defun