Skip to content

Commit

Permalink
Merge pull request doomemacs#5101 from Zetagon/develop
Browse files Browse the repository at this point in the history
Advice lispyville-end-of-defun to go past defuns
  • Loading branch information
hlissner authored May 26, 2021
2 parents 67425f0 + 3b18153 commit 9be8374
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion modules/editor/lispy/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,14 @@
additional
additional-insert))
:config
(lispyville-set-key-theme))
(lispyville-set-key-theme)
;; REVIEW Delete this once https://github.com/noctuid/lispyville/pull/297 is merged
(defadvice! +lispy--fix-lispyville-end-of-defun-a (_)
"lispyville-end-of-defun doesn't go to the next defun when
point is already at the end of a defun, whereas
lispyville-beginning-of-defun does."
:before #'lispyville-end-of-defun
(when (<= (- (line-end-position)
(point))
1)
(forward-line))))

0 comments on commit 9be8374

Please sign in to comment.