Skip to content

Instantly share code, notes, and snippets.

Created February 9, 2012 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1775732 to your computer and use it in GitHub Desktop.
Save anonymous/1775732 to your computer and use it in GitHub Desktop.
missing function from slime.el 20100404
(defun slime-beginning-of-defun ()
(interactive)
(if (and (boundp 'slime-repl-input-start-mark)
slime-repl-input-start-mark)
(slime-repl-beginning-of-defun)
(let ((this-command 'beginning-of-defun)) ; needed for push-mark
(call-interactively 'beginning-of-defun))))
(defun slime-end-of-defun ()
(interactive)
(if (eq major-mode 'slime-repl-mode)
(slime-repl-end-of-defun)
(end-of-defun)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment