[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/xkcd e5d4ab24f6 18/82: Add xkcd-kill-buffer and a keybindi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/xkcd e5d4ab24f6 18/82: Add xkcd-kill-buffer and a keybinding to the function. |
Date: |
Mon, 12 Dec 2022 21:59:50 -0500 (EST) |
branch: elpa/xkcd
commit e5d4ab24f61df1e1b4d7dd63d2efc37a1df7aae8
Author: Vibhav Pant <vibhavp@gmail.com>
Commit: Vibhav Pant <vibhavp@gmail.com>
Add xkcd-kill-buffer and a keybinding to the function.
---
emacs-xkcd.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/emacs-xkcd.el b/emacs-xkcd.el
index da7c6e38c9..28de911cb4 100644
--- a/emacs-xkcd.el
+++ b/emacs-xkcd.el
@@ -22,6 +22,7 @@
(define-key map (kbd "<left>") 'xkcd-prev)
(define-key map (kbd "C-c r") 'xkcd-rand)
(define-key map (kbd "C-c t") 'xkcd-alt-text)
+ (define-key map (kbd "q") 'xkcd-kill-buffer)
map))
(defun xkcd-get-json (url &optional num)
@@ -126,5 +127,10 @@
(interactive)
(message xkcd-alt))
+(defun xkcd-kill-buffer ()
+ "Kill the xkcd buffer"
+ (interactive)
+ (kill-buffer "*xkcd*"))
+
(provide 'emacs-xkcd)
;;; emacs-xkcd.el ends here
- [nongnu] elpa/xkcd 11c428c1b7 17/82: Fix xkcd-rand., (continued)
- [nongnu] elpa/xkcd 11c428c1b7 17/82: Fix xkcd-rand., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 26954c3cfc 48/82: Use image-animated-p instead of image-multi-frame-p for Emacs < 24.4, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 311abf717c 20/82: Add autoload cookie for main entry point, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 746acbab54 23/82: Add .travis.yml., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 775a194d77 26/82: Screenshot should show the alt-text capabilities., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 0911bd3f5c 32/82: json 1.4 not strictly required. Fixes #5., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 86acb5dcb2 55/82: Fix typo in variable name., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 502a36d15e 38/82: Add `xkcd' as an alias for `xkcd-get-latest', ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 6338b49627 40/82: Use major mode instead of minor mode, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd c13dacaf70 56/82: Correct table., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd e5d4ab24f6 18/82: Add xkcd-kill-buffer and a keybinding to the function.,
ELPA Syncer <=
- [nongnu] elpa/xkcd 2923195a57 53/82: Add customization option for handling links., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 2db04f9015 66/82: Merge pull request #13 from TobiMarg/master, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 66eceb7896 62/82: Remove xkcd-handle-urls and friends., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd f539b436cc 60/82: Remove xkcd-handle-link parts to prevent links from being broken., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd f940c7646a 74/82: Add line between MELPA badge and text., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 20e24f1c9b 70/82: Code block is in emacs-lisp, fix directories., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 8f0009f159 77/82: Merge pull request #16 from kaushalmodi/next-prev-args-and-copy-link, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 4845ef86f1 76/82: Add prefix arg to next/prev fn, add copy-link fn, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 2c538d41a9 79/82: Merge pull request #18 from kaushalmodi/retain-quote-style-in-messages, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd b9a3dfa150 33/82: Add docstring for xkcd-alt-text., ELPA Syncer, 2022/12/12