Skip to content

Commit

Permalink
Make (beginning-of-defun -1) go to next title when point is at beginn…
Browse files Browse the repository at this point in the history
…ing of defun
  • Loading branch information
Ambrevar authored and jrblevin committed Nov 2, 2015
1 parent fd3054b commit 92fc302
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions markdown-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -4317,6 +4317,7 @@ When ARG is non-nil, repeat that many times. When ARG is negative,
move forward to the ARG-th following section."
(interactive "P")
(or arg (setq arg 1))
(forward-char 1)
(or (re-search-backward markdown-regex-header nil t arg)
(goto-char (point-min))))

Expand Down

0 comments on commit 92fc302

Please sign in to comment.