40

GitHub - cask/shut-up: Emacs, shut up would you!

 6 years ago
source link: https://github.com/cask/shut-up
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

README.md

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 file:

(depends-on "shut-up")

Usage

Use the shut-up macro to silence function calls:

(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:

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

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK