Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
* [sup-devel] Emacs Integration wiki page
@ 2014-05-20  5:36 Troy Sankey
  2014-05-20  6:53 ` Gaute Hope
  0 siblings, 1 reply; 2+ messages in thread
From: Troy Sankey @ 2014-05-20  5:36 UTC (permalink / raw)
  To: sup-devel


[-- 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [sup-devel] Emacs Integration wiki page
  2014-05-20  5:36 [sup-devel] Emacs Integration wiki page Troy Sankey
@ 2014-05-20  6:53 ` Gaute Hope
  0 siblings, 0 replies; 2+ messages in thread
From: Gaute Hope @ 2014-05-20  6:53 UTC (permalink / raw)
  To: Sup developer discussion

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-20  6:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-20  5:36 [sup-devel] Emacs Integration wiki page Troy Sankey
2014-05-20  6:53 ` Gaute Hope

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox