Now showing

Emacs: use-package essentials

Documentaries & Learning2024Creative Commons
Poster for Emacs: use-package essentials

About this film

In this ~35-minute video I demonstrate the main features of the ‘use-package’ configuration macro that is built into Emacs 29. It is the de facto standard for setting up packages and is designed to make Emacs faster to start up and more robust overall. ;;; Install a package, if needed (use-package denote :ensure t) (use-package dired :ensure nil) ;;; Evaluate code after a package is loaded (use-package ef-themes :ensure t :config (ef-themes-select 'ef-cyprus)) ; the theme for this video ;;; Evaluate code before a package is loaded (use-package corfu :init (setq tab-always-indent 'complete) :config ...) ;;; Conditional loading (use-package spacious-padding :ensure t :if (display-graphic-p) :config ...) ;; This is for the sxhkd program, which is used with minimalist tiling ;; window managers. (use-package sxhkdrc-mode :ensure t :if (eq system-type 'gnu/linux) ...) (when (eq system-type 'gnu/linux) (use-package sxhkdrc-mode :ensure t ...)) ;;; Defer loading by defining keys (use-package denote :ensure t :bind ("C-c n n" . denote) :config (setq denote-known-keywords '("emacs" "philosophy" "politics"))) (use-package denote :ensure t :bind ( :map global-map ; same as above ("C-c n n" . d…

Directors & creators

Protesilaos Stavrou

View on archive.org ↗

More from this pool

Documentaries & Learning

See all →