From: Caio Henrique <caiohcs0@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Caio Henrique <caiohcs0@gmail.com>,
Naoya Yamashita <conao3@gmail.com>,
Stefan Kangas <stefankangas@gmail.com>,
johnw@gnu.org, emacs-devel@gnu.org
Subject: Re: Include leaf in Emacs distribution
Date: Tue, 13 Oct 2020 12:25:08 -0300 [thread overview]
Message-ID: <87blh6cfmz.fsf@gmail.com> (raw)
In-Reply-To: <jwv8sca9s9w.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 13 Oct 2020 09:23:28 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> IMO it would help with the "emacs wizard" proposal. For instance, if
>> there is a "install undo-tree and enable it globally" option on the
>> wizard, it could generate something like this on the emacs init file:
>>
>> (use-package undo-tree
>> :ensure t
>> :diminish undo-tree-mode
>> :config (global-undo-tree-mode))
>
> Why not just use
>
> (global-undo-tree-mode 1)
>
> ?
>
> Assuming the `gnu-elpa` package is installed (which I'd hope we could
> bundle with Emacs-28), then it should do pretty much the same as your
> `use-package` code above, except for the `diminish` which seems
> orthogonal (if we think it should be diminished by default, then we
> should change undo-tree accordingly).
>
>
> Stefan
That was just a simple example from my init file to try to show that
use-package or leaf could help to keep package configurations more
consistent and that it could be used by the code generated by the "emacs
wizard", thus we have reasons to include use-package or leaf on the
Emacs core. So I was not suggesting to add undo-tree or diminish on the
"emacs wizard".
Imagine that we have a lot of recipes on the "emacs wizard" for several
different packages with more complex declarations, in this case
use-package or leaf can keep things more organized and consistent. (I
know that this is subjective.)
Here are some more examples from my init file:
(use-package ivy
:straight t
:diminish ivy-mode
:defer 0.9
:config
(use-package swiper
:straight t
:bind (("C-s" . swiper)
("C-M-s" . swiper-thing-at-point)))
(use-package counsel
:straight t
:diminish counsel-mode
:config (counsel-mode))
(use-package ivy-avy
:straight t)
(ivy-mode))
(use-package company
:straight t
:commands company-mode
:bind (:map company-active-map
("C-n" . 'company-select-next)
("C-p" . 'company-select-previous))
:config
(use-package company-quickhelp
:straight t
:hook (company-mode . company-quickhelp-local-mode)))
(use-package lsp-mode
:straight t
:hook
((c++-mode . lsp)
(c-mode . lsp)
(js-mode . lsp)
(python-mode . lsp)))
next prev parent reply other threads:[~2020-10-13 15:25 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-08 1:37 Include leaf in Emacs distribution Naoya Yamashita
2020-10-08 9:00 ` Ergus
2020-10-08 9:22 ` Naoya Yamashita
2020-10-10 10:11 ` Eli Zaretskii
2020-10-11 5:24 ` Richard Stallman
2020-10-11 8:39 ` Naoya Yamashita
2020-10-11 9:52 ` Thibaut Verron
2020-10-11 16:50 ` Naoya Yamashita
2020-10-11 17:12 ` Thibaut Verron
2020-10-12 2:10 ` Naoya Yamashita
2020-10-12 20:23 ` Ergus via Emacs development discussions.
2020-10-11 17:02 ` Stefan Kangas
2020-10-11 16:51 ` Stefan Kangas
2020-10-12 20:53 ` Mingde (Matthew) Zeng
2020-10-11 17:22 ` Stefan Kangas
2020-10-12 1:35 ` Naoya Yamashita
2020-10-12 22:13 ` Stefan Kangas
2020-10-12 22:19 ` Qiantan Hong
2020-10-12 22:39 ` Caio Henrique
2020-10-13 13:23 ` Stefan Monnier
2020-10-13 14:14 ` Thibaut Verron
2020-10-13 14:29 ` Stefan Monnier
2020-10-13 15:29 ` Thibaut Verron
2020-10-18 9:32 ` Phil Sainty
2020-10-13 15:25 ` Caio Henrique [this message]
2020-10-23 2:37 ` Naoya Yamashita
2020-10-23 3:41 ` John Wiegley
2020-10-23 14:33 ` Stefan Monnier
2020-10-23 15:53 ` Naoya Yamashita
2020-10-23 16:46 ` Warnings in init files (was: Include leaf in Emacs distribution) Stefan Monnier
2020-10-23 18:11 ` Include leaf in Emacs distribution T.V Raman
2020-10-23 18:41 ` Stefan Kangas
2020-10-23 20:04 ` John Wiegley
2020-11-16 5:29 ` Naoya Yamashita
2020-11-17 0:39 ` John Wiegley
2020-11-20 11:04 ` Naoya Yamashita
2020-11-20 11:29 ` Pankaj Jangid
2020-11-20 15:44 ` T.V Raman
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=87blh6cfmz.fsf@gmail.com \
--to=caiohcs0@gmail.com \
--cc=conao3@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=johnw@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=stefankangas@gmail.com \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).