summaryrefslogtreecommitdiff
path: root/README.md
blob: c33e43b9c24ab07680d36a13d8f01c1c734e7f87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Shut up!

If you have an Emacs shell script, you most likely don't want output
like this:

```
Loading vc-git...
```

This package does it's best at shutting Emacs up!

## Installation

Add `shut-up` to your [Cask](https://github.com/cask/cask) file:

```lisp
(depends-on "shut-up")
```

## Usage

Use the `shut-up` macro to silence function calls:

```lisp
(let (output)
  (shut-up
    (message "Foo")
    (setq output (shut-up-current-output)))
  (message "This was the last message: %s" output))
```

In non-interactive sessions, you can also use `shut-up-silence-emacs` to change
some global Emacs settings to reduce output:

```lisp
(when noninteractive
  (shut-up-silence-emacs))
```