Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: Gaute Hope <eg@gaute.vetsj.com>
To: Sup developer discussion <sup-devel@rubyforge.org>
Subject: Re: [sup-devel] Emacs Integration wiki page
Date: Tue, 20 May 2014 08:53:42 +0200	[thread overview]
Message-ID: <CABKe4Mudd=udT1w26fp5+yJVWuH2hTEfWc3JnJ6UhirM6WDP1w@mail.gmail.com> (raw)
In-Reply-To: <1400562885-sup-1119@ultralap.site>

[-- Attachment #1: Type: text/plain, Size: 2074 bytes --]

Thanks, merged.


On Tue, May 20, 2014 at 7:36 AM, Troy Sankey <sankeytms@gmail.com> wrote:

> 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 "^$")))
> +```
>
> _______________________________________________
> Sup-devel mailing list
> Sup-devel@rubyforge.org
> http://rubyforge.org/mailman/listinfo/sup-devel
>
>

[-- Attachment #2: Type: text/html, Size: 2862 bytes --]

      reply	other threads:[~2014-05-20  6:53 UTC|newest]

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

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='CABKe4Mudd=udT1w26fp5+yJVWuH2hTEfWc3JnJ6UhirM6WDP1w@mail.gmail.com' \
    --to=eg@gaute.vetsj.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