diff options
Diffstat (limited to 'lisp/fibs.el')
-rw-r--r-- | lisp/fibs.el | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/lisp/fibs.el b/lisp/fibs.el new file mode 100644 index 0000000..545c2a7 --- /dev/null +++ b/lisp/fibs.el | |||
@@ -0,0 +1,37 @@ | |||
1 | ;;; fibs.el --- Play backgammon with FIBS -*- lexical-binding: t; -*- | ||
2 | |||
3 | ;;; Commentary: | ||
4 | |||
5 | ;; fibs.com is one of the oldest backgammon servers out there, and it's | ||
6 | ;; accessible via telnet. This package provides a wrapper to enable you to play | ||
7 | ;; backgammon on fibs.com more easily than just opening a telnet session | ||
8 | ;; yourself. | ||
9 | |||
10 | ;;; TODO: | ||
11 | |||
12 | ;; - Automatically log in. | ||
13 | ;; - Add a `fibs-quit' function to kill the telnet server and buffer. | ||
14 | |||
15 | ;;; Code: | ||
16 | |||
17 | (require 'telnet) | ||
18 | |||
19 | (defgroup fibs nil | ||
20 | "Customizations for FIBS, the First Internet Backgammon Server." | ||
21 | :group 'games) | ||
22 | |||
23 | (defcustom fibs-server "fibs.com" | ||
24 | "The server to connect to FIBS with." | ||
25 | :type 'string) | ||
26 | |||
27 | (defcustom fibs-port 4321 | ||
28 | "The port to connect to FIBS with." | ||
29 | :type 'number) | ||
30 | |||
31 | ;;;###autoload | ||
32 | (defun fibs () | ||
33 | (interactive) | ||
34 | (telnet fibs-server fibs-port)) | ||
35 | |||
36 | (provide 'fibs) | ||
37 | ;;; fibs.el ends here | ||