From bde4d532041c213835085a259cab0ee25bb8edfb Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Fri, 30 Dec 2022 23:41:30 +0100 Subject: Add notes on use-package --- reviews/emacs/hype.org | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) (limited to 'reviews') diff --git a/reviews/emacs/hype.org b/reviews/emacs/hype.org index 03a54cc..42e9b6a 100644 --- a/reviews/emacs/hype.org +++ b/reviews/emacs/hype.org @@ -5,20 +5,25 @@ the changes /I/ am excited about. ** =:core= promotions A couple of ELPA packages have moved to emacs.git, making them available out of the box. - -- eglot ("Emacs Polyglot") :: an LSP client that lets Emacs leverage - language servers to boost completion-at-point, eldoc, flymake, - imenu, project, xref. - -- use-package :: a utility macro for configuring packages that makes - init-file management more pleasant (and efficient to boot): - - OT1H, brings some amount of structure and order when compared to a - fully free-form DYI =.emacs=, - - OTOH, allows more leeway on how to organize things, when compared - to Custom's rigid auto-generated forms (e.g. using regular code - comments, computing option values), - - takes care of setting up the ~eval-after-load~ wizardry to keep - startup snappy. +*** eglot ("Emacs Polyglot"): LSP client +Lets Emacs leverage language servers to boost completion-at-point, +eldoc, flymake, imenu, project, xref. +*** use-package: init-file management +A utility macro for configuring packages that makes init-file +management more pleasant (and efficient to boot): + +- OT1H, brings some amount of structure and order when compared to a + fully free-form DYI =.emacs=, +- OTOH, allows more leeway on how to organize things, when compared to + Custom's rigid auto-generated forms (e.g. using regular code + comments, computing option values, sorting options arbitrarily), +- takes care of setting up the ~eval-after-load~ wizardry to keep + startup snappy. + +A tedious aspect of porting a ~custom-file~ to ~use-package~ +declarations is tracking down what package defines which variables, +since not every variable is named after the package it belongs to. +I wrote [[file:~/memory-leaks/guides/emacs/use-package.org::*Porting from ~custom-file~][some code to make the process faster]]. ** ~global-text-scale-adjust~ ~text-scale-adjust~ (bound to =C-x C-X= ∀ =X= ∈ =[=+-0]=) only scales the font size in the current buffer; more often than not, one may want -- cgit v1.2.3