jwiegley / use-package

A use-package declaration for simplifying your .emacs
https://jwiegley.github.io/use-package
GNU General Public License v3.0
4.42k stars 260 forks source link

How to use Emacsmirror #1034

Closed aguynamedben closed 1 year ago

aguynamedben commented 1 year ago

I'm interested in using frame-cmds.el. It's also on Emacsmirror - here.

Is there a recommended way to use use-package along with Emacsmirror? I'm looking at quelpa-use-package but I can't find any good examples of how to configure it.

Thank you for providing this fantastic package!

aguynamedben commented 1 year ago

Hmmm, I got an error the first time it ran, but this seems to be working

init.el

;;
;; Package management
;; https://framagit.org/steckerhalter/steckemacs.el/-/blob/master/steckemacs.el
;;

(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
(when (not package-archive-contents)
  (package-refresh-contents))
(package-install 'use-package)
(use-package use-package-ensure
  :config (setq use-package-always-ensure t))

(unless (package-installed-p 'quelpa)
  (with-temp-buffer
    (url-insert-file-contents "https://github.com/quelpa/quelpa/raw/master/quelpa.el")
    (eval-buffer)
    (quelpa-self-upgrade)))
(quelpa
 '(quelpa-use-package
   :fetcher git
   :url "https://github.com/quelpa/quelpa-use-package.git"))
(require 'quelpa-use-package)

(use-package frame-fns
  :quelpa (frame-fns :fetcher github :repo "emacsmirror/frame-fns"))

(use-package frame-cmds
  :after (frame-fns)
  :quelpa (frame-cmds :fetcher github :repo "emacsmirror/frame-cmds"))