From: Emanuel Berg <incal@dataswamp.org>
To: help-gnu-emacs@gnu.org
Subject: circular list for ELPAs
Date: Mon, 14 Nov 2022 17:05:28 +0100 [thread overview]
Message-ID: <87fselfrnb.fsf@dataswamp.org> (raw)
Circular list for the package manager.
Pop until you drop! B)
Maybe it can be defined in a oneliner to get rid of the unused
binding but when I do that it just ...
If anything can start anew, then everything must continue!
;;; -*- lexical-binding: t -*-
;;
;; this file:
;; https://dataswamp.org/~incal/emacs-init/elpa.el
(require 'cl-lib)
(require 'close)
(require 'package)
(require 'scroll)
(cl-pushnew '("melpa" . "https://melpa.org/packages/")
package-archives :test #'equal)
(let*((pack-status '("" "available" "built-in" "dependency"
"incompat" "installed" "new") )
(_ (setf (cdr (last pack-status)) pack-status)) )
(defun pack-filter (&optional status)
(interactive)
(unless status (setq status (pop pack-status)))
(package-menu-filter-by-status status)
(message (if (string-empty-p status)
"all"
status) ))
(declare-function pack-filter nil) )
(defun elpa (&optional fetch)
(interactive "P")
(if fetch
(list-packages)
(let ((buf (get-buffer "*Packages*"))) ; hardcoded in package.el 28 times
(if (and buf (bufferp buf))
(pop-to-buffer buf)
(list-packages) ))))
(defalias 'melpa #'elpa)
(let ((kmap package-menu-mode-map))
(set-close-key kmap)
(set-pane-scroll-keys kmap)
(set-vertical-keys kmap)
(define-key kmap "\t" #'pack-filter) )
--
underground experts united
https://dataswamp.org/~incal
next reply other threads:[~2022-11-14 16:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-14 16:05 Emanuel Berg [this message]
2022-11-16 1:04 ` circular list for ELPAs John Haman
2022-11-16 2:15 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fselfrnb.fsf@dataswamp.org \
--to=incal@dataswamp.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).