Skip to content

Instantly share code, notes, and snippets.

@meedstrom
meedstrom / gist:b31758e8c5f022e04b3a72e18155985e
Last active March 3, 2026 16:45
Compact standalone `quiet!` macro

Here is a compact reimplementation of Doom's quiet! macro. It depends on package llama, but I challenge anyone to rewrite it with lambdas and then tell me that it was worth it.

;; -*- lexical-binding: t; -*-
(defmacro quiet! (&rest forms)
  "Eval FORMS like `progn', but muffle all messages."
  `(if init-file-debug
       (progn ,@forms)
     (let ((inhibit-message t)
 (save-silently t)