Skip to content

Commit

Permalink
feat(core): add +first-line-empty-p helper
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Oct 12, 2023
1 parent 7256aba commit d83aa23
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions elisp/+buffer.el
Original file line number Diff line number Diff line change
Expand Up @@ -199,5 +199,11 @@ between lines."
(kill-new (buffer-string)))))
(deactivate-mark)))

;;;###autoload
(defun +first-line-empty-p ()
"Returns t when the first line of the buffer is empty."
(save-excursion (goto-char (point-min))
(and (bolp) (eolp))))


;;; +buffer.el ends here

0 comments on commit d83aa23

Please sign in to comment.