Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: Troy Sankey <sankeytms@gmail.com>
To: sup-devel <sup-devel@rubyforge.org>
Subject: [sup-devel] Emacs Integration wiki page
Date: Mon, 19 May 2014 22:36:36 -0700	[thread overview]
Message-ID: <1400562885-sup-1119@ultralap.site> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1768 bytes --]

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 "^$")))
+```

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel

             reply	other threads:[~2014-05-20  5:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-20  5:36 Troy Sankey [this message]
2014-05-20  6:53 ` Gaute Hope

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1400562885-sup-1119@ultralap.site \
    --to=sankeytms@gmail.com \
    --cc=sup-devel@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox