From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Combine multiple (straight-)use-package commands into one. Date: Sat, 12 Jun 2021 17:57:53 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3715"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 12 11:58:39 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ls0PW-0000mj-Vt for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 12 Jun 2021 11:58:38 +0200 Original-Received: from localhost ([::1]:54802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ls0PV-0003nR-Sp for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 12 Jun 2021 05:58:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ls0P3-0003nJ-Sq for help-gnu-emacs@gnu.org; Sat, 12 Jun 2021 05:58:09 -0400 Original-Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:35399) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ls0P1-0001gS-R0 for help-gnu-emacs@gnu.org; Sat, 12 Jun 2021 05:58:09 -0400 Original-Received: by mail-lj1-x236.google.com with SMTP id n17so12983466ljg.2 for ; Sat, 12 Jun 2021 02:58:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=du47I7y9QAHJCArh3r9Fb8PW2/SpPNUfdeG/zLwOaPs=; b=IV4Xu2XcV+HTeigAuCZz87YX9BfUbrPK0FgNpiGyFgswH9fkxdNpOa2jrfbvX90oMU OWAI7u29lc6KvlSDvVzzcjXIY4FZjqMDEf9HXEGxq3RVGWuqhxumCeagm4ffyQIBbiOv 5OiQdexmADnsiierhlG4o3qH2oGeVd/9ve2Qk+BddO+FFSJLR4C+Sf/ZCbFkGtXGlurP nUazJy14B7m34KNoZNpwJBmRw/CXTHdARidLi1/XI1zOawHZC6ia4zuzlw4t26BF01Y7 KGGK0YQa/kbak8tyzhOBY9A7pVYXYV5M8OoQV2b4Pl91wqnJtOIm25pLFy71VHI1BFkV pegg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=du47I7y9QAHJCArh3r9Fb8PW2/SpPNUfdeG/zLwOaPs=; b=XfmxGnM8cCPYwj4h7MQWeNQZIfVht9YbSjoQBbKLQoMr90IlWrNb3372kX9MhSQAns uIHtPoC6Uk+pQ4aFCHf+1d5P9wdkQTiuunaYKE07tDgpnSUB77Tj/wJxn/xXFaYXJYWj xwzxuyfwJP9RdSlSwyjsuD4p+KmBE/L7SNmhsTMxZzqdRuUJspVYNUDw48HPCm/CpUja sqFv2KC00cKGLz4DG0rfA2bzMo3rcC/MgWlECvDAzi6+yZlZ11xXvRd04sPUnYt8R/4i Zq/hrPcdBQxaTo3VlyMB9N6brPIB5cDEUAVTIweQgNS1WZ3vxtWO1uof0Q4zmjt+x00T vUhA== X-Gm-Message-State: AOAM532MW/i73G+2/9U8Rg2WhWN6Pt2tFOVxb65txQR7498d6bktYLDn qPOY//dLFRxqT65w0w97HDrHrgQwbxp0iuz+DmvYACOPoBo3fou59UM= X-Google-Smtp-Source: ABdhPJyjgsnd0hrHDZYYtiPA0hbK798Bb56EGqeTFzurIWzTH4X5Ys3wR8mlzsEB+mI+liymkc3zITZitSKoRFY7NSw= X-Received: by 2002:a05:651c:2c7:: with SMTP id f7mr6192829ljo.287.1623491884409; Sat, 12 Jun 2021 02:58:04 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=hongyi.zhao@gmail.com; helo=mail-lj1-x236.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:130773 Archived-At: 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 Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering NO. 552 North Gangtie Road, Xingtai, China