From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glyn Millington Newsgroups: gmane.emacs.help Subject: Re: Email "cut here" code snippets Date: Thu, 29 Jan 2015 13:30:34 +0000 Organization: Utterly lacking Message-ID: <87egqdogsl.fsf@nowhere.org> References: <87wq45u6yx.fsf@gmail.com> Reply-To: glyn.millington@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422540434 9293 80.91.229.3 (29 Jan 2015 14:07:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Jan 2015 14:07:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 29 15:07:10 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YGpkR-00020T-J3 for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jan 2015 15:07:07 +0100 Original-Received: from localhost ([::1]:59895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGpkQ-0003P5-Th for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Jan 2015 09:07:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGpkA-0003Ow-SB for help-gnu-emacs@gnu.org; Thu, 29 Jan 2015 09:06:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YGpk6-00056M-Rt for help-gnu-emacs@gnu.org; Thu, 29 Jan 2015 09:06:50 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:55929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YGpk6-000565-LR for help-gnu-emacs@gnu.org; Thu, 29 Jan 2015 09:06:46 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YGpk1-0001jv-GE for help-gnu-emacs@gnu.org; Thu, 29 Jan 2015 15:06:41 +0100 Original-Received: from cust25-dsl91-135-3.idnet.net ([91.135.3.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Jan 2015 15:06:41 +0100 Original-Received: from glyn.millington by cust25-dsl91-135-3.idnet.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Jan 2015 15:06:41 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cust25-dsl91-135-3.idnet.net X-Liturgical-Date: Weekday: Thursday of the Third Week of Ordinary Time, A.D. 2015 X-Shakespeare: "The first thing we do, let's kill all the lawyers." -- King Henry VI, Part 2, IV.2 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:SDAXR4fqhK/yN8/YGUixTDInJSw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102363 Archived-At: torys.anderson@gmail.com (Tory S. Anderson) writes: > I use GNUs and notice that some people include "---8<-- cut here" type > snippets, which are specially formatted in my view. Where can I find > this behavior documented, and is there a predefined shortcut for > inserting these? I haven't spotted anything on it in the GNUs manual or > online searches. I have had this in my init.el/.emacs for ever! It's not mine and I can't remember where it came from but it works ;;;; SCISSORS (defvar scissors "8<------" "string to insert in \\[scissors]") (defun scissors () "Insert a line of SCISSORS in the buffer" (interactive) (or (bolp) (beginning-of-line 2)) (while (<= (current-column) (- (or fill-column 70) (length scissors))) (insert scissors)) (newline)) (bind-key "s-s" 'scissors) hth Glyn