Skip to content

Instantly share code, notes, and snippets.

@mrosset
Created December 31, 2017 14:19
Show Gist options
  • Save mrosset/64ae9adacc5b3f96685a8676c1a77077 to your computer and use it in GitHub Desktop.
Save mrosset/64ae9adacc5b3f96685a8676c1a77077 to your computer and use it in GitHub Desktop.
(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