From 18e5e02b3782337a49e9910f66b3e57b5701e385 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 4 Feb 2024 19:11:29 -0500 Subject: [PATCH] module: remove :tools gist This module had been deprecated for some years, because it's central package (gist.el) has been non-functional and unmaintained for years. This will later be replaced with a more general module (powered by webpaste.el or similar) for interacting with pastebin services (including gist). --- modules/tools/gist/README.org | 55 ----------------------------- modules/tools/gist/autoload/evil.el | 19 ---------- modules/tools/gist/config.el | 31 ---------------- modules/tools/gist/packages.el | 4 --- templates/init.example.el | 1 - 5 files changed, 110 deletions(-) delete mode 100644 modules/tools/gist/README.org delete mode 100644 modules/tools/gist/autoload/evil.el delete mode 100644 modules/tools/gist/config.el delete mode 100644 modules/tools/gist/packages.el diff --git a/modules/tools/gist/README.org b/modules/tools/gist/README.org deleted file mode 100644 index c2f09021a..000000000 --- a/modules/tools/gist/README.org +++ /dev/null @@ -1,55 +0,0 @@ -#+title: :tools gist -#+subtitle: A pastebin for Githubsters -#+created: May 07, 2017 -#+since: 2.0.3 - -#+begin_quote -  *This module is deprecated.* gist.el has been abandoned and is generally - buggy. This may be replaced by a more general pastebin module that - interfaces with various pastebin servers. -#+end_quote - -* Description :unfold: -Adds the ability to manage, pull from, or push to your [[https://gist.github.com][Gists]] from within Emacs. - -** Maintainers -/This module has no dedicated maintainers./ [[doom-contrib-maintainer:][Become a maintainer?]] - -** Module flags -/This module has no flags./ - -** Packages -- [[doom-package:gist]] - -** Hacks -/No hacks documented for this module./ - -** TODO Changelog -# This section will be machine generated. Don't edit it by hand. -/This module does not have a changelog yet./ - -* Installation -[[id:01cffea4-3329-45e2-a892-95a384ab2338][Enable this module in your ~doom!~ block.]] - -/This module has no external requirements./ - -* TODO Usage -#+begin_quote - 󱌣 This module has no usage documentation yet. [[doom-contrib-module:][Write some?]] -#+end_quote - -* TODO Configuration -#+begin_quote - 󱌣 This module has no configuration documentation yet. [[doom-contrib-module:][Write some?]] -#+end_quote - -* Troubleshooting -/There are no known problems with this module./ [[doom-report:][Report one?]] - -* Frequently asked questions -/This module has no FAQs yet./ [[doom-suggest-faq:][Ask one?]] - -* TODO Appendix -#+begin_quote - 󱌣 This module has no appendix yet. [[doom-contrib-module:][Write one?]] -#+end_quote diff --git a/modules/tools/gist/autoload/evil.el b/modules/tools/gist/autoload/evil.el deleted file mode 100644 index 654d658ee..000000000 --- a/modules/tools/gist/autoload/evil.el +++ /dev/null @@ -1,19 +0,0 @@ -;;; tools/gist/autoload/evil.el -*- lexical-binding: t; -*- -;;;###if (modulep! :editor evil) - -;;;###autoload (autoload '+gist:send "tools/gist/autoload/evil" nil t) -(evil-define-operator +gist:send (bang) - "Create a private gist from the buffer. If BANG then make it public." - :type inclusive :repeat nil - (interactive "") - (if bang - (gist-region-or-buffer) - (gist-region-or-buffer-private))) - -;;;###autoload (autoload '+gist:list "tools/gist/autoload/evil" nil t) -(evil-define-command +gist:list (&optional username) - "Pop up a listing of gists." - (interactive "") - (if username - (gist-list-user username) - (gist-list))) diff --git a/modules/tools/gist/config.el b/modules/tools/gist/config.el deleted file mode 100644 index cd902c213..000000000 --- a/modules/tools/gist/config.el +++ /dev/null @@ -1,31 +0,0 @@ -;;; tools/gist/config.el -*- lexical-binding: t; -*- - -;; NOTE On occasion, the cache gets corrupted, causing wrong-type-argument -;; errors. If that happens, try `+gist/kill-cache'. You may have to restart -;; Emacs. - -(after! gist - (set-evil-initial-state! 'gist-list-mode 'normal) - - (set-popup-rule! "^\\*gist-" :ignore t) - - (defadvice! +gist--open-in-popup-a (fn &rest args) - :around #'gist-list-render - (funcall fn (car args) t) - (unless (cadr args) - (pop-to-buffer (current-buffer)))) - - (map! :map gist-list-menu-mode-map - :n "RET" #'gist-fetch-current - :n "TAB" #'gist-fetch-current - :n [tab] #'gist-fetch-current-noselect - :n "go" #'gist-browse-current-url - :n "gr" #'gist-list-reload - :n "c" #'gist-add-buffer - :n "d" #'gist-kill-current - :n "e" #'gist-edit-current-description - :n "f" #'gist-fork - :n "q" #'kill-current-buffer - :n "s" #'gist-star - :n "S" #'gist-unstar - :n "y" #'gist-print-current-url)) diff --git a/modules/tools/gist/packages.el b/modules/tools/gist/packages.el deleted file mode 100644 index f8a971d9f..000000000 --- a/modules/tools/gist/packages.el +++ /dev/null @@ -1,4 +0,0 @@ -;; -*- no-byte-compile: t; -*- -;;; tools/gist/packages.el - -(package! gist :pin "314fe6ab80fae35b95f0734eceb82f72813b6f41") diff --git a/templates/init.example.el b/templates/init.example.el index 169604c3b..7a5e4e6c7 100644 --- a/templates/init.example.el +++ b/templates/init.example.el @@ -94,7 +94,6 @@ ;;editorconfig ; let someone else argue about tabs vs spaces ;;ein ; tame Jupyter notebooks with emacs (eval +overlay) ; run code, run (also, repls) - ;;gist ; interacting with github gists lookup ; navigate your code and its documentation ;;lsp ; M-x vscode magit ; a git porcelain for Emacs