Created
December 31, 2017 14:19
-
-
Save mrosset/64ae9adacc5b3f96685a8676c1a77077 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use-modules (ice-9 format)) | |
(use-modules (nomad repl)) | |
(use-modules (nomad browser)) | |
;; give some quality of life | |
(define q query) | |
(define b back) | |
(define f forward) | |
(define o browse) | |
(define h home) | |
(define bookmarks '( | |
(1 . "https://www.gnu.org/software/guile/manual/html_node") | |
(2 . "reddit.com/r/emacs") | |
)) | |
(set! default-home-page "http://google.ca") | |
(define (pp-bookmarks) | |
(define (print-bookmark arg) | |
(format #t "~s ~s\n" (car arg) (cdr arg))) | |
(map print-bookmark bookmarks)) | |
(define (book key) | |
(browse (assoc-ref bookmarks key))) | |
;; spawn a repl server | |
(repl-start) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment