Skip to content

Commit

Permalink
Thu 10 Jun 2021 16:13:28
Browse files Browse the repository at this point in the history
  • Loading branch information
mullikine committed Jun 10, 2021
1 parent d9a84c3 commit a63556a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pen-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,19 @@
(beginning-of-line)
(point)))

(defun clean-repl (&optional input)
(interactive (list (pen-preceding-text-line)))

(let ((ret
(snc "clean-repl" input)))
(if (interactive-p)
(xc ret)
ret)))
(defalias 'clean-prompt 'clean-repl)

(defun pen-preceding-text-line ()
(cond
(major-mode-p 'term-mode))
(str (buffer-substring (point) (max 1 (beginning-of-line-point)))))


Expand Down

0 comments on commit a63556a

Please sign in to comment.