Add newlines to scratch buffer; start point at bottom of scratch buffer
This commit is contained in:
parent
8d92bb8c13
commit
d34a230ca6
|
@ -41,8 +41,10 @@
|
||||||
(define (make-editor #:tty [tty (stdin-tty)]
|
(define (make-editor #:tty [tty (stdin-tty)]
|
||||||
#:default-modeset [default-modeset (make-modeset)])
|
#:default-modeset [default-modeset (make-modeset)])
|
||||||
(define g (make-buffergroup))
|
(define g (make-buffergroup))
|
||||||
(define scratch (make-buffer g "*scratch*" #:initial-contents ";; This is the scratch buffer."))
|
(define scratch (make-buffer g "*scratch*"
|
||||||
|
#:initial-contents ";; This is the scratch buffer.\n\n"))
|
||||||
(define w (make-window scratch))
|
(define w (make-window scratch))
|
||||||
|
(window-move-to! w (buffer-size scratch))
|
||||||
(define e (editor g
|
(define e (editor g
|
||||||
tty
|
tty
|
||||||
(list->circular-list (list (list w (relative-size 1))))
|
(list->circular-list (list (list w (relative-size 1))))
|
||||||
|
|
Loading…
Reference in New Issue