From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11941 invoked from network); 26 Aug 2021 21:50:10 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 26 Aug 2021 21:50:10 -0000 Received: from localhost ([::1]:33272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJNGB-0004Xy-Ul for ml@inbox.vuxu.org; Thu, 26 Aug 2021 17:50:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJN8D-0001AA-R4 for info-gnus-english@gnu.org; Thu, 26 Aug 2021 17:41:53 -0400 Received: from mail.ericabrahamsen.net ([52.70.2.18]:57328) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJN8B-0000Fn-Ex for info-gnus-english@gnu.org; Thu, 26 Aug 2021 17:41:53 -0400 Received: from localhost (75-172-126-110.tukw.qwest.net [75.172.126.110]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 2CD82FA827; Thu, 26 Aug 2021 21:41:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1630014103; bh=289bEokOtbtLk0tX4vVUHRX/Oe72/SCVS87pkQizvV0=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=gjSwQaGqoLnjCBLnUo6nD9cWKzF4TqfRVudXSXFXlCxwwMErtu9q5PmAcOo4nkZSk e7MPyOONkdQfbZbmEDNdKNJCVmTwrxvMO6P7nMqo3AIcc6MqveneGMpF7dNVhB34QU 82qV8Uep+OD8N0I2QG4oqpb2QS1508/6DgefPZT0= From: Eric Abrahamsen To: Andreas Reuleaux Subject: Re: cut here markers for code snippets in mail References: <87v93snjz9.fsf@softland> Date: Thu, 26 Aug 2021 14:41:41 -0700 In-Reply-To: <87v93snjz9.fsf@softland> (Andreas Reuleaux's message of "Thu, 26 Aug 2021 19:23:22 +0100") Message-ID: <8735qvdgtm.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=52.70.2.18; envelope-from=eric@ericabrahamsen.net; helo=mail.ericabrahamsen.net X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: info-gnus-english@gnu.org Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: "info-gnus-english" Andreas Reuleaux writes: > Hi, > > I have seen people highlighting code snippets in mail > with "cut here markers": some ascii art for scissors, "cut here", > "start", "end", ..., like so: > > rm -f /etc/fonts/conf.d/70-no-bitmaps.conf > ln -f -s /usr/share/fontconfig/conf.avail/70-yes-bitmaps.conf /etc/fonts/conf.d > > > which is kind of nice, and simple (as I don't want to get into > composing html mails with org-mime or the like). > > I get to see them "green on yellow" in gnus (once I have received > such mails), or when in draft status (in my drafts folder). > > Two questions (at least): > > For one thing, I wonder if this behaviour is anywhere > documented/specified/explained in more detail? > > And then: I would like to see my code green-on-yellow snippets in > message mode as well (when composing mail), or at least as a toggle: > see how my mail would look to the recipient. > > And how are people actually using these "cut here markers": > insert them by hand, as I did above? Or is there some automatic support > for this hidden somewhere? - Or any other mechanisms for > such code snippets highlighting - in org mode nevertheless perhaps [?]: > I don't want to send html mails, but maybe org-mime / orgmsg / etc. > are useful for composing mails? The command to run is `message-mark-inserted-region', bound to "C-c M-m" by default in message-mode. It's not terribly discoverable, but it is there in the "Message" menu. I don't believe there's currently any way to get a "preview" in message-mode, of how your outgoing message will look to the recipient.