help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [External] : Re: Is there a way to avoid clobbering minibuffer by me


From: Eric S Fraga
Subject: Re: [External] : Re: Is there a way to avoid clobbering minibuffer by messages?
Date: Fri, 31 Mar 2023 11:40:25 +0100
User-agent: gnus (Emacs 30.0.50)

On Thursday, 30 Mar 2023 at 22:26, Jean Louis wrote:
> (setq set-message-function 'dunstify)

Quite funny this: I have the opposite.  As I live in Emacs, I tend to
ignore everything else around me, including messages that are handled by
dunst.  So I have dunst tell Emacs about any popup messages via this
shell script:

--8<---------------cut here---------------start------------->8---
#!/bin/sh -f
# send dunst message to emacs to keep log in the *Messages* buffer
APPNAME="$1"
SUMMARY="$2"
BODY="$3"
ICON="$4"
URGENCY="$5"
DATE=$(date +%H.%M)
emacsclient -n --eval "(let ((s \"${DATE}: ${APPNAME}/${SUMMARY}: $BODY\") 
(inhibit-message t)) (message (substring s 0 (min (length s) (- (frame-width) 
10)))))"
--8<---------------cut here---------------end--------------->8---

Sorry for interruption.  As you were.

eric

-- 
Eric S Fraga via gnus (Emacs 30.0.50 2023-03-21) on Debian 11.6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]