unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Combine multiple (straight-)use-package commands into one.
@ 2021-06-12  9:57 Hongyi Zhao
  2021-06-12 14:57 ` Hongyi Zhao
  0 siblings, 1 reply; 8+ messages in thread
From: Hongyi Zhao @ 2021-06-12  9:57 UTC (permalink / raw)
  To: help-gnu-emacs

On Ubuntu 20.04, according to the instruction
[here](https://github.com/raxod502/straight.el/issues/786#issuecomment-859155336),
I use the following settings in my Emacs init file:

```
;;Bootstrap straight
(defvar bootstrap-version)
(let ((bootstrap-file
       (expand-file-name "straight/repos/straight.el/bootstrap.el"
user-emacs-directory))
      (bootstrap-version 5))
  (unless (file-exists-p bootstrap-file)
    (with-current-buffer
        (url-retrieve-synchronously
         "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
         'silent 'inhibit-cookies)
      (goto-char (point-max))
      (eval-print-last-sexp)))
  (load bootstrap-file nil 'nomessage))

;; Install use-package via straight
(straight-use-package 'use-package)

;; Setting this to `t' makes it so that you don't need to include the :straight
;; keyword in use-package declarations unless you want to add/extend the package
;; installation recipe.

(setq straight-use-package-by-default t) ; straight's equivalent of
`use-package-always-ensure'.
```
Now, I want to install multiple package hosted in recipe repositories
(such as MELPA) as shown below with only one (straight-)use-package
command, is it possible?
```
(use-package flycheck)
(use-package lsp-mode)
(use-package dash)
(use-package posframe)
(use-package s)
(use-package ein)
(use-package smartparens)
(use-package valign)
(use-package multi-term)
```
Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-06-13 14:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-12  9:57 Combine multiple (straight-)use-package commands into one Hongyi Zhao
2021-06-12 14:57 ` Hongyi Zhao
2021-06-12 16:08   ` Omar Polo
2021-06-13  1:29     ` Hongyi Zhao
2021-06-13 10:22   ` Thibaut Verron
2021-06-13 12:53     ` Hongyi Zhao
2021-06-13 13:29       ` Hongyi Zhao
2021-06-13 14:54         ` Thibaut Verron

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).