From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.96.157.163 with SMTP id wn3csp299365qdb; Mon, 19 May 2014 22:45:03 -0700 (PDT) X-Received: by 10.60.76.166 with SMTP id l6mr241286oew.83.1400564702999; Mon, 19 May 2014 22:45:02 -0700 (PDT) Return-Path: Received: from rubyforge.org ([50.56.192.79]) by mx.google.com with ESMTP id dt2si27284238obb.98.2014.05.19.22.45.02 for ; Mon, 19 May 2014 22:45:02 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) client-ip=50.56.192.79; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org; dkim=neutral (body hash did not verify) header.i=@; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 9F9112E1BD; Tue, 20 May 2014 05:45:02 +0000 (UTC) X-Greylist: delayed 494 seconds by postgrey-1.31 at rubyforge; Tue, 20 May 2014 05:44:54 UTC Received: from mail-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48]) by rubyforge.org (Postfix) with ESMTP id 0ACF02E191 for ; Tue, 20 May 2014 05:44:53 +0000 (UTC) Received: by mail-pb0-f48.google.com with SMTP id rr13so6750434pbb.35 for ; Mon, 19 May 2014 22:44:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent :content-transfer-encoding:mime-version:content-type; bh=ib29E4w8btXW1gebqjJLC7/oAZ39F2q87FOHq5O59sg=; b=JeoGRW+24CzAcp0tT4uB7jbNmIsc3YA/1pWJVNeKp0po1RhvYR1pyjr3xfb/sHcU5Q P5kEzC+pNSXUKzJY2KihHOa4arHqSqlByYfmS0p5Yg0GI8U8fmgzlDh8FIxtAgrE9NF7 rn3aKRs9eZ/NoKWUDJTshLazLsq/7nhtaWZBYYGF0iWp6GFLdQeWT/pkmY/9o5r3SiDz vxqkNWkbykHIZtLaGzK+8cv7tD6H+Yb0OLAxEeeMCTDyMuHRecS+re9jXm2rk7XLL90K ApKBTK8BhtTK3hSkR7ZzwIVzIAmdHUq0vL+n8A6B1+6GXL8mOb2lFWxVjdzE0JtevQSZ 2YuQ== X-Received: by 10.69.12.33 with SMTP id en1mr6720704pbd.43.1400564198312; Mon, 19 May 2014 22:36:38 -0700 (PDT) Received: from localhost ([131.179.104.239]) by mx.google.com with ESMTPSA id ay3sm907244pbb.62.2014.05.19.22.36.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 May 2014 22:36:37 -0700 (PDT) From: Troy Sankey To: sup-devel Date: Mon, 19 May 2014 22:36:36 -0700 Message-Id: <1400562885-sup-1119@ultralap.site> User-Agent: Sup/0.18.0 MIME-Version: 1.0 Subject: [sup-devel] Emacs Integration wiki page X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============6256864852676070611==" Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org --===============6256864852676070611== Content-Transfer-Encoding: 8bit Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=-1400564196-387900-31002-2862-1-=" --=-1400564196-387900-31002-2862-1-= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Emacs! The following changes since commit 96c7fdd5fb4d9bc99e70a050eba72c31e445: Template (2014-04-24 01:01:53 -0700) are available in the git repository at: https://linux.ucla.edu/~sankeytm/repos/sup.wiki.git master for you to fetch changes up to a61957168fb14fc45926c8e4ac78ea9e35b36aa0: added page for Emacs Integration (2014-05-19 21:57:21 -0700) ---------------------------------------------------------------- Troy Sankey (1): added page for Emacs Integration Emacs-Integration.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Emacs-Integration.md diff --git a/Emacs-Integration.md b/Emacs-Integration.md new file mode 100644 index 0000000..ecfcc59 --- /dev/null +++ b/Emacs-Integration.md @@ -0,0 +1,37 @@ +# Emacs Integration + +To configure Sup to use Emacs as an editor, set _:editor:_ in +_~/.sup/config.yaml_ to the `emacs` command. Alternatively, use `emacs +-nw` to run Emacs in text mode. + +Excerpt from _~/.sup/config.yaml_: + +```yaml +:editor: emacs -nw +``` + +To configure emacs for writing mail, enable message-mode on files +matching the regex "/sup.*eml$". Add this to your _~/.emacs_: + +```elisp +(add-to-list 'auto-mode-alist '("/sup.*eml$" . message-mode)) +``` + +If you want to enable some minor modes for convenience +(e.g. auto-fill-mode, flyspell-mode) use a message-mode hook: + +```elisp +(add-hook 'message-mode-hook (lambda () + (auto-fill-mode 1) + (flyspell-mode 1))) +``` + +To move the cursor down to the first empty line, add to the hook like +this: + +```elisp +(add-hook 'message-mode-hook (lambda () + (auto-fill-mode 1) + (flyspell-mode 1) + (search-forward-regexp "^$"))) +``` --=-1400564196-387900-31002-2862-1-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJTeunkAAoJEILOu+6H2FfCZoMP/3olm29U2wHR78Cw4YecisYC bojmM/uwSGCm6qyPljw9L1ME0BsRVhouGa8Oc24U0Ft78xdDAumRjvN9LrYhY6m6 81lLKpNvb/h0HPZ/yN/cQYrhWoaUVb0G+7fxjjBLOXuysWbL9RS297o+YzMyKJkO esiuu0opoBL1wvpyfSmYJgmq18idWDxhm3Tj/SSJNbpbtiW3TKhfVRfyYJ5DaD2f yhyxmYMeDOQZ4lJE9uik/+m+NWFKy9B7ew100TlOeaSu3aP+VstNTypdREw917Tt X6pkko0lOlPqz163PcPcSlwT0VzVsexZ33uI8lfP3XtPWY2SV1BTUaq89m4675dK TJNIqjC5y72uhlEulr5aIxTpHs3Xg1Zfnhq7zm1/0Eodgnv/8GLJOhgXibdd0wVZ gv85Gows19HKPsEoHkr27MJczIyYRRcRRkZb2DU46/O4rv3nW8lIrBtUMmxIwLp2 D8go1lRPRT9B9aMHuLEdT/RS04RVdnlxY8MIr+3mKI3oxkUKkCgSKVd7xDevaVLt A9XcXWVjCcfSIXfVuJuah80YtKPjnopScewYr+kDwTo36byMQbfZzmWc1akn5MF9 0kYxaw01aJGufJDhCA1YDCmfQZA7981d8Je5s68/Fnk3D2xn7s/bv2lJV32z7PWh RP9hFsbL/nagEhR/RcSp =DII5 -----END PGP SIGNATURE----- --=-1400564196-387900-31002-2862-1-=-- --===============6256864852676070611== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel --===============6256864852676070611==--