Skip to content

Commit

Permalink
Thu 15 Apr 2021 09:49:02
Browse files Browse the repository at this point in the history
  • Loading branch information
mullikine committed Apr 14, 2021
1 parent 9c90f48 commit 5766481
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pen-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
;; (tv (save-excursion (ntimes 5 (call-interactively 'previous-line)) (message (str (point)))))


(defun get-point-start-of-nth-previous-line (n)
(save-excursion
(ntimes n (ignore-errors (previous-line)))
(beginning-of-line)
(point)))



(defun pen-surrounding-text (&optional window-line-size)
(if (not window-line-size)
(setq window-line-size 20))
Expand Down

0 comments on commit 5766481

Please sign in to comment.