about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-01-18 17:18:06 -0600
committerCase Duckworth2022-01-18 17:18:06 -0600
commitefc08126f7119569112b336f0cd73eefdf9737b5 (patch)
tree5356cbf6626cb72f7f0c69dbbf4fa35ee6955fc6
parentModify org-file-apps after loading org (diff)
downloademacs-efc08126f7119569112b336f0cd73eefdf9737b5.tar.gz
emacs-efc08126f7119569112b336f0cd73eefdf9737b5.zip
Um
-rw-r--r--early-init.el8
-rw-r--r--eshell/history23
-rw-r--r--eshell/lastdir5
-rw-r--r--init.el91
-rw-r--r--lisp/+elfeed.el75
-rw-r--r--lisp/+eshell.el8
-rw-r--r--lisp/+org.el8
-rw-r--r--lisp/+straight.el41
-rw-r--r--lisp/+tab-bar.el55
-rw-r--r--lisp/acdw.el24
-rw-r--r--lisp/fibs.el37
11 files changed, 313 insertions, 62 deletions
diff --git a/early-init.el b/early-init.el index 67b4271..840a649 100644 --- a/early-init.el +++ b/early-init.el
@@ -24,13 +24,13 @@
24;;(setq debug-on-error t) 24;;(setq debug-on-error t)
25(message "Loading early-init.el...") 25(message "Loading early-init.el...")
26 26
27;; (define-advice load (:before (feature &rest _)) 27(define-advice load (:before (feature &rest _))
28;; "Message the user when loading a library." 28 "Message the user when loading a library."
29;; (with-temp-message (format "Now loading: '%s'" feature))) 29 (with-temp-message (format "Now loading: '%s'" feature)))
30 30
31;;; Speed up init 31;;; Speed up init
32 32
33;; (setq gc-cons-threshold most-positive-fixnum) 33(setq gc-cons-threshold most-positive-fixnum)
34 34
35(add-hook 'emacs-startup-hook 35(add-hook 'emacs-startup-hook
36 (defun emacs-startup@restore-values () 36 (defun emacs-startup@restore-values ()
diff --git a/eshell/history b/eshell/history index 67689e1..81214c1 100644 --- a/eshell/history +++ b/eshell/history
@@ -12,3 +12,26 @@ vterm
12cat ~/Sync/fonts-debian.txt | sudo xargs apt install 12cat ~/Sync/fonts-debian.txt | sudo xargs apt install
13cat ~/Sync/fonts-debian.txt | sudo xargs apt install -y 13cat ~/Sync/fonts-debian.txt | sudo xargs apt install -y
14alias e='find-file $*' 14alias e='find-file $*'
15emacs --debug-init
16apt search xfce
17sudo apt install bluebird-gtk-theme blackbird-gtk-theme greybird-gtk-theme xfce4-mount-plugin
18apt search icons
19sudo apt install elementary-xfce-icon-theme
20apt search elementary
21apt search wingpanel
22apt search elementary
23cd ~/src
24ls
25git clone https://github.com/elementary/stylesheet.git elementary-gtk-stylesheet
26cd elementary-gtk-stylesheet/
27meson build --prefix=~/.local
28meson build --prefix=$HOME/.local
29sudo apt install meson ninja sassc
30sudo apt install meson sassc
31meson build --prefix=$HOME/.local
32cd build
33ninja install
34ninja clean
35sudo apt install gimp
36(derived-mode-p 'eshell-mode)
37echo $PAGER
diff --git a/eshell/lastdir b/eshell/lastdir index 1549824..552e2ce 100644 --- a/eshell/lastdir +++ b/eshell/lastdir
@@ -9,3 +9,8 @@
9/home/case/Sync 9/home/case/Sync
10/home/case 10/home/case
11/home/case/.emacs.d 11/home/case/.emacs.d
12/home/case/Sync/emacs/private
13/home/case/src
14/home/case/src/elementary-gtk-stylesheet
15/home/case/src/elementary-gtk-stylesheet/build
16~
diff --git a/init.el b/init.el index 7ec390f..f7ce8db 100644 --- a/init.el +++ b/init.el
@@ -413,13 +413,13 @@
413 ;; Brand new for Emacs 28: see https://ruzkuku.com/texts/emacs-mouse.html 413 ;; Brand new for Emacs 28: see https://ruzkuku.com/texts/emacs-mouse.html
414 ;; Actually, look at this as well: https://www.emacswiki.org/emacs/Mouse3 414 ;; Actually, look at this as well: https://www.emacswiki.org/emacs/Mouse3
415 (when (fboundp 'context-menu-mode) 415 (when (fboundp 'context-menu-mode)
416 ;; (:option context-menu-functions 416 (:option context-menu-functions
417 ;; '(context-menu-ffap 417 '(context-menu-ffap
418 ;; context-menu-region 418 context-menu-region
419 ;; context-menu-undo 419 context-menu-undo
420 ;; context-menu-dictionary)) 420 context-menu-dictionary))
421 (context-menu-mode +1)) 421 (context-menu-mode +1))
422 (dolist (click '( ; Fix scrolling in the margin 422 (dolist (click '(;; Fix scrolling in the margin
423 wheel-down double-wheel-down triple-wheel-down 423 wheel-down double-wheel-down triple-wheel-down
424 wheel-up double-wheel-up triple-wheel-up)) 424 wheel-up double-wheel-up triple-wheel-up))
425 (global-set-key (vector 'right-margin click) 'mwheel-scroll) 425 (global-set-key (vector 'right-margin click) 'mwheel-scroll)
@@ -624,11 +624,52 @@
624 624
625(setup time 625(setup time
626 ;; TODO: +display-time-mode with MOAR customizations 626 ;; TODO: +display-time-mode with MOAR customizations
627 (:option display-time-format "%H:%M %a %e" 627 (:option display-time-default-load-average nil
628 display-time-default-load-average nil
629 display-time-mail-file :disable) 628 display-time-mail-file :disable)
629 (with-eval-after-load 'discord
630 (with-eval-after-load '+tab-bar
631 (:option display-time-string-forms
632 '((propertize (format-time-string "%H:%M %a %e" now)
633 'face '+tab-bar-extra
634 'help-echo (discord-date-string))
635 load
636 (if mail
637 (concat " "
638 (propertize
639 display-time-mail-string
640 'display `(when (and display-time-use-mail-icon
641 (display-graphic-p))
642 ,@display-time-mail-icon
643 ,@(when (and
644 display-time-mail-face
645 (memq
646 (plist-get
647 (cdr display-time-mail-icon)
648 :type)
649 '(pbm xbm)))
650 (let ((bg (face-attribute
651 display-time-mail-face
652 :background)))
653 (when (stringp bg)
654 (list :background bg)))))
655 'face display-time-mail-face))
656 "")
657 " "))))
658
630 (display-time-mode +1)) 659 (display-time-mode +1))
631 660
661(setup tramp
662 (el-patch-feature tramp)
663 (with-eval-after-load 'tramp
664 (el-patch-defun tramp-debug-buffer-command-completion-p (_symbol buffer)
665 "A predicate for Tramp interactive commands.
666They are completed by \"M-x TAB\" only in Tramp debug buffers."
667 (with-current-buffer buffer
668 (el-patch-wrap 2
669 (save-restriction
670 (widen)
671 (string-equal (buffer-substring 1 10) ";; Emacs:")))))))
672
632(setup (:straight 0x0) 673(setup (:straight 0x0)
633 (:option 0x0-default-server 'ttm) 674 (:option 0x0-default-server 'ttm)
634 (with-eval-after-load 'embark 675 (with-eval-after-load 'embark
@@ -1013,7 +1054,7 @@ See also `crux-reopen-as-root-mode'."
1013 (electric-cursor-mode +1)) 1054 (electric-cursor-mode +1))
1014 1055
1015(setup (:straight elfeed) 1056(setup (:straight elfeed)
1016 (:also-load +elfeed) 1057 (:require +elfeed)
1017 (+define-dir elfeed/ (sync/ "emacs/elfeed/" t)) 1058 (+define-dir elfeed/ (sync/ "emacs/elfeed/" t))
1018 (:option 1059 (:option
1019 elfeed-curl-program-name (executable-find "curl") 1060 elfeed-curl-program-name (executable-find "curl")
@@ -1044,10 +1085,7 @@ See also `crux-reopen-as-root-mode'."
1044 "&" #'+elfeed-show-browse-generic 1085 "&" #'+elfeed-show-browse-generic
1045 "RET" #'shr-browse-url) 1086 "RET" #'shr-browse-url)
1046 (:hook #'reading-mode) 1087 (:hook #'reading-mode)
1047 ;; (define-advice elfeed-show-entry (:after (&rest _)) 1088 (+elfeed-update-async-mode +1)))
1048 ;; "Re-flow the entry a short time after showing it."
1049 ;; (run-at-time 0.1 nil #'elfeed-show-refresh))
1050 ))
1051 1089
1052(setup (:straight elfeed-org) 1090(setup (:straight elfeed-org)
1053 (:also-load +org-capture) 1091 (:also-load +org-capture)
@@ -1210,6 +1248,8 @@ See also `crux-reopen-as-root-mode'."
1210(setup (:straight hungry-delete) 1248(setup (:straight hungry-delete)
1211 (:option hungry-delete-chars-to-skip " \t" 1249 (:option hungry-delete-chars-to-skip " \t"
1212 hungry-delete-join-reluctantly nil) 1250 hungry-delete-join-reluctantly nil)
1251 (+with-ensure-after-init
1252 (add-to-list 'hungry-delete-except-modes 'eshell-mode))
1213 (:bind-into paredit 1253 (:bind-into paredit
1214 ;; I define these functions here because they really require both packages 1254 ;; I define these functions here because they really require both packages
1215 ;; to make any sense. So, would I put them in `+hungry-delete' or 1255 ;; to make any sense. So, would I put them in `+hungry-delete' or
@@ -1295,6 +1335,17 @@ See also `crux-reopen-as-root-mode'."
1295 (setf (alist-get 'markdown-mode apheleia-mode-alist) 'markdownfmt) 1335 (setf (alist-get 'markdown-mode apheleia-mode-alist) 'markdownfmt)
1296 (setf (alist-get 'gfm-mode apheleia-mode-alist) 'markdownfmt)))) 1336 (setf (alist-get 'gfm-mode apheleia-mode-alist) 'markdownfmt))))
1297 1337
1338(setup (:straight mastodon)
1339 (:option mastodon-instance-url "https://tiny.tilde.website"
1340 mastodon-client--token-file (.etc "mastodon.plstore")
1341 mastodon-auth-source-file (car auth-sources)
1342 mastodon-tl--enable-proportional-fonts t
1343 mastodon-tl--show-avatars t)
1344 (:hook #'mastodon-async-mode
1345 #'reading-mode
1346 #'hl-line-mode
1347 #'lin-mode))
1348
1298(setup (:straight minions) 1349(setup (:straight minions)
1299 (minions-mode +1)) 1350 (minions-mode +1))
1300 1351
@@ -1647,13 +1698,6 @@ See also `crux-reopen-as-root-mode'."
1647 (sync/ "emacs/snippets" t))) 1698 (sync/ "emacs/snippets" t)))
1648 (yas-global-mode +1)) 1699 (yas-global-mode +1))
1649 1700
1650(setup (:straight zoom-frm))
1651
1652(setup (:straight zzz-to-char)
1653 (:require +zzz-to-char)
1654 (:option zzz-to-char-reach 1024)
1655 (:global "M-z" #'+zzz-to-char))
1656
1657(setup (:straight (ytdious 1701(setup (:straight (ytdious
1658 :host github :repo "spiderbit/ytdious" 1702 :host github :repo "spiderbit/ytdious"
1659 :fork (:host github :repo "duckwork/ytdious"))) 1703 :fork (:host github :repo "duckwork/ytdious")))
@@ -1662,3 +1706,10 @@ See also `crux-reopen-as-root-mode'."
1662 (concat "https://" +invidious-host) 1706 (concat "https://" +invidious-host)
1663 "https://invidious.snopyta.org")) 1707 "https://invidious.snopyta.org"))
1664 (:bind "y" #'+ytdious-watch)) 1708 (:bind "y" #'+ytdious-watch))
1709
1710(setup (:straight zoom-frm))
1711
1712(setup (:straight zzz-to-char)
1713 (:require +zzz-to-char)
1714 (:option zzz-to-char-reach (+bytes 1 :kib))
1715 (:global "M-z" #'+zzz-to-char))
diff --git a/lisp/+elfeed.el b/lisp/+elfeed.el index 9e5f787..ef93347 100644 --- a/lisp/+elfeed.el +++ b/lisp/+elfeed.el
@@ -2,8 +2,6 @@
2 2
3;;; Code: 3;;; Code:
4 4
5(require 'elfeed)
6
7;; https://karthinks.com/software/lazy-elfeed/ 5;; https://karthinks.com/software/lazy-elfeed/
8(defun +elfeed-scroll-up-command (&optional arg) 6(defun +elfeed-scroll-up-command (&optional arg)
9 "Scroll up or go to next feed item in Elfeed" 7 "Scroll up or go to next feed item in Elfeed"
@@ -31,5 +29,78 @@
31 (interactive) 29 (interactive)
32 (elfeed-show-visit t)) 30 (elfeed-show-visit t))
33 31
32;;; Fetch feeds async
33;; https://github.com/skeeto/elfeed/issues/367
34
35(defun +elfeed--update-message ()
36 (message "[Elfeed] Update in progress")
37 'ignore)
38
39(defvar +elfeed--update-running nil "Whether an update is currently running.")
40
41(defun +elfeed-update-command ()
42 (interactive)
43 (let ((script (expand-file-name "~/.local/bin/elfeed")))
44 (message "[Elfeed] Updating in the background.")
45 (setq +elfeed--update-running t)
46 (elfeed-db-save)
47 (advice-add 'elfeed :override #'+elfeed--update-message)
48 (ignore-errors (kill-buffer "*elfeed-search*"))
49 (ignore-errors (kill-buffer "*elfeed-log*"))
50 (elfeed-db-unload)
51 (unless (file-exists-p script)
52 (make-directory (file-name-directory script) :parents)
53 (with-temp-buffer
54 (insert "(progn\n"
55 " (load (locate-user-emacs-file \"early-init\"))\n"
56 " (straight-use-package 'elfeed)\n"
57 " (require 'elfeed)\n"
58 " (elfeed)\n"
59 " (elfeed-update)\n"
60 " (while (> (elfeed-queue-count-total) 0)\n"
61 " (sleep-for 5)\n"
62 " (message \"%s\" (elfeed-queue-count-total))\n"
63 " (accept-process-output))\n"
64 " (elfeed-db-save-safe)\n"
65 " (elfeed-db-gc-safe))")
66 (write-file script)))
67 (set-process-sentinel (start-process-shell-command
68 "Elfeed" nil (concat "emacs --script " script))
69 (lambda (a b)
70 (advice-remove 'elfeed #'+elfeed--update-message)
71 (setq +elfeed--update-running nil)
72 (message "[Elfeed] Background update %s."
73 (string-trim b))))))
74
75(defvar +elfeed--update-timer nil "Timer for `elfeed-update-command'.")
76(defvar +elfeed--update-first-time 6 "How long to wait for the first time.")
77(defvar +elfeed--update-repeat (* 60 15) "How long between updates.")
78
79(defun +elfeed--cancel-update-timer ()
80 "Cancel `+elfeed--update-timer'."
81 (unless +elfeed--update-running
82 (ignore-errors (cancel-timer +elfeed--update-timer))
83 (setq +elfeed--update-timer nil)))
84
85(defun +elfeed--reinstate-update-timer ()
86 "Reinstate `+elfeed--update-timer'."
87 (setq +elfeed--update-timer
88 (run-at-time +elfeed--update-first-time
89 +elfeed--update-repeat
90 #'+elfeed-update-command)))
91
92(define-minor-mode +elfeed-update-async-mode
93 "Minor mode to update elfeed async-style every 15 minutes."
94 :global t
95 (if +elfeed-update-async-mode
96 (progn ; enable
97 (+elfeed--reinstate-update-timer)
98 (advice-add 'elfeed :before '+elfeed--cancel-update-timer)
99 (advice-add 'elfeed-search-quit-window :after '+elfeed--reinstate-update-timer))
100 (progn ; disable
101 (advice-remove 'elfeed '+elfeed--cancel-update-timer)
102 (advice-remove 'elfeed-search-quit-window '+elfeed--reinstate-update-timer)
103 (+elfeed--cancel-update-timer))))
104
34(provide '+elfeed) 105(provide '+elfeed)
35;;; +elfeed.el ends here 106;;; +elfeed.el ends here
diff --git a/lisp/+eshell.el b/lisp/+eshell.el index 1f8677c..d49358d 100644 --- a/lisp/+eshell.el +++ b/lisp/+eshell.el
@@ -91,10 +91,10 @@ something, it's really annoying to work with."
91 ,@forms) 91 ,@forms)
92 (when (featurep 'eshell) 92 (when (featurep 'eshell)
93 `(dolist (buf (buffer-list)) 93 `(dolist (buf (buffer-list))
94 (with-current-buffer buf 94 (with-current-buffer buf
95 (when (derived-mode-p 'eshell-mode) 95 (when (derived-mode-p 'eshell-mode)
96 (+eshell@setup))))) 96 (+eshell@setup)))))
97 '(add-hook 'eshell-mode-hook #'+eshell@setup))) 97 (add-hook 'eshell-mode-hook #'+eshell@setup)))
98 98
99(provide '+eshell) 99(provide '+eshell)
100;;; +eshell.el ends here 100;;; +eshell.el ends here
diff --git a/lisp/+org.el b/lisp/+org.el index 5869622..11a816f 100644 --- a/lisp/+org.el +++ b/lisp/+org.el
@@ -433,8 +433,12 @@ the deletion might narrow the column."
433 (when (and (memq this-char-type types) (memq prev-char-type types)) 433 (when (and (memq this-char-type types) (memq prev-char-type types))
434 (backward-char) 434 (backward-char)
435 (setq type prev-char-type)) ; what the fuckckckckck 435 (setq type prev-char-type)) ; what the fuckckckckck
436 (if (memq type types) 436 ;; Okay, so this ^ is pretty janky and doesn't /really/ work that well,
437 (progn (org-open-at-point arg)) 437 ;; especially on DEADLINE (and probably SCHEDULED) lines. However, since
438 ;; I really just want to open the list of URLs /most of the time/, I'm
439 ;; fixing it like this instead.
440 (unless (and (memq type types)
441 (ignore-errors (org-open-at-point arg)))
438 (while (not 442 (while (not
439 (progn 443 (progn
440 (org-back-to-heading) 444 (org-back-to-heading)
diff --git a/lisp/+straight.el b/lisp/+straight.el new file mode 100644 index 0000000..d00ad9a --- /dev/null +++ b/lisp/+straight.el
@@ -0,0 +1,41 @@
1;;; +straight.el --- Straight.el extras -*- lexical-binding: t; -*-
2
3;;; Commentary:
4
5;;; Code:
6
7(defun +straight-update-package (package &optional recursive)
8 "Update PACKAGE using straight.
9This pulls, rebuilds, and loads the updated PACKAGE."
10 (interactive (list (straight--select-package "Update package"
11 #'straight--installed-p)
12 current-prefix-arg))
13 (+with-message (format "Pulling package `%s'%s" package
14 (if recursive " and deps" ""))
15 (funcall (if recursive
16 #'straight-pull-package-and-deps
17 #'straight-pull-package)
18 package
19 :from-upstream))
20 (+with-message (format "Rebuilding package `%s'%s" package
21 (if recursive " and deps" ""))
22 (straight-rebuild-package package recursive))
23 (+with-message (format "Loading package `%s'%s" package
24 (if recursive " and deps" ""))
25 (ignore-errors (load-library (symbol-name package)))
26 (when recursive
27 (dolist (dep (straight--get-transitive-dependencies package))
28 (ignore-errors (load-library (symbol-name package)))))))
29
30(defun +straight-update-all (from-upstream)
31 "Update all installed packages using straight.
32This pulls and rebuilds all packages at once. It does not reload
33all of them, for reasons that should be obvious.
34
35With a prefix argument, it also pulls the packages FROM-UPSTREAM."
36 (interactive "P")
37 (straight-pull-all from-upstream)
38 (straight-rebuild-all))
39
40(provide '+straight)
41;;; +straight.el ends here
diff --git a/lisp/+tab-bar.el b/lisp/+tab-bar.el index 2e9198c..b11be2c 100644 --- a/lisp/+tab-bar.el +++ b/lisp/+tab-bar.el
@@ -22,7 +22,7 @@
22 `((global menu-item ,(string-trim-right 22 `((global menu-item ,(string-trim-right
23 (format-mode-line mode-line-misc-info)) 23 (format-mode-line mode-line-misc-info))
24 24
25 ignore))) 25 ignore :help (discord-date-string))))
26 26
27(defvar +tab-bar-show-original nil 27(defvar +tab-bar-show-original nil
28 "Original value of `tab-bar-show'.") 28 "Original value of `tab-bar-show'.")
@@ -129,35 +129,30 @@ Used by `tab-bar-format-menu-bar'."
129;;; Tab bar format tabs 129;;; Tab bar format tabs
130 130
131(require 'el-patch) 131(require 'el-patch)
132 132(el-patch-feature tab-bar)
133(el-patch-defun tab-bar--format-tab (tab i) 133(with-eval-after-load 'tab-bar
134 (append 134 (el-patch-defun tab-bar--format-tab (tab i)
135 (el-patch-remove 135 "Format TAB using its index I and return the result as a keymap."
136 `((,(intern (format "sep-%i" i)) menu-item ,(tab-bar-separator) ignore))) 136 (append
137 (cond 137 (el-patch-remove
138 ((eq (car tab) 'current-tab) 138 `((,(intern (format "sep-%i" i)) menu-item ,(tab-bar-separator) ignore)))
139 `((current-tab 139 (cond
140 menu-item 140 ((eq (car tab) 'current-tab)
141 ,(funcall tab-bar-tab-name-format-function tab i) 141 `((current-tab
142 ignore 142 menu-item
143 :help "Current tab"))) 143 ,(funcall tab-bar-tab-name-format-function tab i)
144 (t 144 ignore
145 `((,(intern (format "tab-%i" i)) 145 :help "Current tab")))
146 menu-item 146 (t
147 ,(funcall tab-bar-tab-name-format-function tab i) 147 `((,(intern (format "tab-%i" i))
148 ,(or 148 menu-item
149 (alist-get 'binding tab) 149 ,(funcall tab-bar-tab-name-format-function tab i)
150 `(lambda () 150 ,(alist-get 'binding tab)
151 (interactive) 151 :help "Click to visit tab"))))
152 (tab-bar-select-tab ,i))) 152 (when (alist-get 'close-binding tab)
153 :help "Click to visit tab")))) 153 `((,(if (eq (car tab) 'current-tab) 'C-current-tab (intern (format "C-tab-%i" i)))
154 `((,(if (eq (car tab) 'current-tab) 'C-current-tab (intern (format "C-tab-%i" i))) 154 menu-item ""
155 menu-item "" 155 ,(alist-get 'close-binding tab)))))))
156 ,(or
157 (alist-get 'close-binding tab)
158 `(lambda ()
159 (interactive)
160 (tab-bar-close-tab ,i)))))))
161 156
162 157
163;; Emacs 27 158;; Emacs 27
diff --git a/lisp/acdw.el b/lisp/acdw.el index 17741ab..a96e6a7 100644 --- a/lisp/acdw.el +++ b/lisp/acdw.el
@@ -248,5 +248,29 @@ With optional ARG (\\[universal-argument]), just split."
248 (interactive "P") 248 (interactive "P")
249 (+split-window-then :below arg)) 249 (+split-window-then :below arg))
250 250
251(defun +bytes (number unit)
252 "Convert NUMBER UNITs to bytes.
253UNIT can be one of :kb, :mb, :gb, :tb, :pb, :eb, :zb, :yb; :kib, :mib, :gib,
254:tib, :pib, :eib, :zib, :yib."
255 (* number (pcase unit
256 ;; Base 10 units
257 (:kb 1000)
258 (:mb (* 1000 1000))
259 (:gb (* 1000 1000 1000))
260 (:tb (* 1000 1000 1000 1000))
261 (:pb (* 1000 1000 1000 1000 1000))
262 (:eb (* 1000 1000 1000 1000 1000 1000))
263 (:zb (* 1000 1000 1000 1000 1000 1000 1000))
264 (:yb (* 1000 1000 1000 1000 1000 1000 1000 1000))
265 ;; Base 2 units
266 (:kib 1024)
267 (:mib (* 1024 1024))
268 (:gib (* 1024 1024 1024))
269 (:tib (* 1024 1024 1024 1024))
270 (:pib (* 1024 1024 1024 1024 1024))
271 (:eib (* 1024 1024 1024 1024 1024 1024))
272 (:zib (* 1024 1024 1024 1024 1024 1024 1024))
273 (:yib (* 1024 1024 1024 1024 1024 1024 1024 1024)))))
274
251(provide 'acdw) 275(provide 'acdw)
252;;; acdw.el ends here 276;;; acdw.el ends here
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