Skip to content

Instantly share code, notes, and snippets.

@jplindstrom
jplindstrom / evil_defun_textobject.el
Created September 13, 2012 13:41
A "defun" Emacs Evil text object
;; Define a "defun" Emacs Evil text object
(defun jpl-line-before-end-of-defun (&optional arg)
(interactive)
(end-of-defun arg)
(previous-line))
(defun jpl-line-after-beginning-of-defun (&optional arg)
(interactive)
(beginning-of-defun arg)
(next-line))