Improve searching for unused defs by writing a custom beginning-of-defun function