Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Can't get emacs to open in flyspell-mode
@ 2008-11-06 22:07 Steve Goldman
  2008-11-07  1:02 ` William Morgan
  2008-11-07 22:03 ` Christopher Warrington
  0 siblings, 2 replies; 6+ messages in thread
From: Steve Goldman @ 2008-11-06 22:07 UTC (permalink / raw)



I set my editor in config.yaml to:

emacs -f flyspell-mode -nw +8

This command works correctly from the command line, but when sup opens
emacs for composing, it uses -nw and +8 correctly but does not use
flyspell-mode.  Anyone have any luck with this?

Thanks.
-- 

Steve Goldman
sgoldman at tower-research.com

T: 212.219.6014
F: 212.219.6007

Tower Research Capital, LLC
377 Broadway, 11th Fl.
New York, NY 10013


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

* [sup-talk] Can't get emacs to open in flyspell-mode
  2008-11-06 22:07 [sup-talk] Can't get emacs to open in flyspell-mode Steve Goldman
@ 2008-11-07  1:02 ` William Morgan
  2008-11-07 14:23   ` Steve Goldman
  2008-11-07 22:03 ` Christopher Warrington
  1 sibling, 1 reply; 6+ messages in thread
From: William Morgan @ 2008-11-07  1:02 UTC (permalink / raw)


Reformatted excerpts from Steve Goldman's message of 2008-11-06:
> This command works correctly from the command line, but when sup opens
> emacs for composing, it uses -nw and +8 correctly but does not use
> flyspell-mode.  Anyone have any luck with this?

Sup just does a system call to <editor> <filename>, with no fanciness,
so it's hard to imagine what would be wrong, unless it's some Emacs
wackiness. Time to switch to vi? :)
-- 
William <wmorgan-sup at masanjin.net>


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

* [sup-talk] Can't get emacs to open in flyspell-mode
  2008-11-07  1:02 ` William Morgan
@ 2008-11-07 14:23   ` Steve Goldman
  0 siblings, 0 replies; 6+ messages in thread
From: Steve Goldman @ 2008-11-07 14:23 UTC (permalink / raw)


Excerpts from William Morgan's message of Thu Nov 06 20:02:56 -0500 2008:
> Reformatted excerpts from Steve Goldman's message of 2008-11-06:
> > This command works correctly from the command line, but when sup opens
> > emacs for composing, it uses -nw and +8 correctly but does not use
> > flyspell-mode.  Anyone have any luck with this?
> 
> Sup just does a system call to <editor> <filename>, with no fanciness,
> so it's hard to imagine what would be wrong, unless it's some Emacs
> wackiness. Time to switch to vi? :)

Yeah, looks like it's an emacs thing.  When I run it from the command
line with a file argument, it doesn't work.  Sorry for the time
waste...
-- 

Steve Goldman
sgoldman at tower-research.com

T: 212.219.6014
F: 212.219.6007

Tower Research Capital, LLC
377 Broadway, 11th Fl.
New York, NY 10013


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

* [sup-talk] Can't get emacs to open in flyspell-mode
  2008-11-06 22:07 [sup-talk] Can't get emacs to open in flyspell-mode Steve Goldman
  2008-11-07  1:02 ` William Morgan
@ 2008-11-07 22:03 ` Christopher Warrington
  2008-11-07 22:24   ` Steve Goldman
  1 sibling, 1 reply; 6+ messages in thread
From: Christopher Warrington @ 2008-11-07 22:03 UTC (permalink / raw)


"Steve Goldman" <sgoldman at tower-research.com> @ 2008-11-6 4:07 PM:
> I set my editor in config.yaml to:
> 
> emacs -f flyspell-mode -nw +8
> 
> This command works correctly from the command line, but when sup opens
> emacs for composing, it uses -nw and +8 correctly but does not use
> flyspell-mode.  Anyone have any luck with this?

I set my editor to be emacsclient and added this to my .emacs:

; disable longlines-mode for e-mail
; mail-mode runs text-mode first.
(add-to-list 'auto-mode-alist
'("sup\\.\\(compose\\|forward\\|reply\\|resume\\)-mode$" . mail-mode))
(add-hook 'mail-mode-hook (function (lambda ()
                                      (longlines-mode 0)
                                      (auto-fill-mode 1))))

Using emacsclient keeps one copy of emacs open, but each invocation of
emacsclient opens a new buffer with the given file. I always used sup while
using a windowing environment at the same time.
http://www.emacswiki.org/emacs-en/EmacsClient

Even if you don't use a windowing environment, the mail-mode modification
should work. It will also give you some nice features like quote
highlighting while editing (assuming font-lock is on).

-- 
Christopher Warrington <chrisw at rice.edu>




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

* [sup-talk] Can't get emacs to open in flyspell-mode
  2008-11-07 22:03 ` Christopher Warrington
@ 2008-11-07 22:24   ` Steve Goldman
  2008-11-10  5:13     ` William Morgan
  0 siblings, 1 reply; 6+ messages in thread
From: Steve Goldman @ 2008-11-07 22:24 UTC (permalink / raw)


Excerpts from Christopher Warrington's message of Fri Nov 07 17:03:06 -0500 2008:
> "Steve Goldman" <sgoldman at tower-research.com> @ 2008-11-6 4:07 PM:
> > I set my editor in config.yaml to:
> > 
> > emacs -f flyspell-mode -nw +8
> > 
> > This command works correctly from the command line, but when sup opens
> > emacs for composing, it uses -nw and +8 correctly but does not use
> > flyspell-mode.  Anyone have any luck with this?
> 
> I set my editor to be emacsclient and added this to my .emacs:
> 
> ; disable longlines-mode for e-mail
> ; mail-mode runs text-mode first.
> (add-to-list 'auto-mode-alist
> '("sup\\.\\(compose\\|forward\\|reply\\|resume\\)-mode$" . mail-mode))
> (add-hook 'mail-mode-hook (function (lambda ()
>                                       (longlines-mode 0)
>                                       (auto-fill-mode 1))))
> 
> Using emacsclient keeps one copy of emacs open, but each invocation of
> emacsclient opens a new buffer with the given file. I always used sup while
> using a windowing environment at the same time.
> http://www.emacswiki.org/emacs-en/EmacsClient
> 
> Even if you don't use a windowing environment, the mail-mode modification
> should work. It will also give you some nice features like quote
> highlighting while editing (assuming font-lock is on).
> 

Combining Christopher's idea with something I found on the internet,
putting the following in my .emacs opens sup buffers with
flyspell-mode enabled.  Warning, flyspell checks all the text in the
buffer before letting you work, so if you are quoting a really long
chain of emails, this can take a few seconds.

;; flyspell stuff
(add-to-list 'auto-mode-alist
'("sup\\.\\(compose\\|forward\\|reply\\|resume\\)-mode$" . mail-mode))

(setq mail-mode-hook (quote (#[nil "\300\301!\207" [flyspell-mode 1] 2] flyspell-buffer mail-mode-hook-identify)))
-- 

Steve Goldman
sgoldman at tower-research.com

T: 212.219.6014
F: 212.219.6007

Tower Research Capital, LLC
377 Broadway, 11th Fl.
New York, NY 10013


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

* [sup-talk] Can't get emacs to open in flyspell-mode
  2008-11-07 22:24   ` Steve Goldman
@ 2008-11-10  5:13     ` William Morgan
  0 siblings, 0 replies; 6+ messages in thread
From: William Morgan @ 2008-11-10  5:13 UTC (permalink / raw)


Reformatted excerpts from Steve Goldman's message of 2008-11-07:
> Combining Christopher's idea with something I found on the internet,
> putting the following in my .emacs opens sup buffers with
> flyspell-mode enabled.

A gold star, and a free copy of Sup, to whoever adds their precious
knowledge to the Wiki:

  http://sup.rubyforge.org/wiki/wiki.pl?EmacsIntegration
-- 
William <wmorgan-sup at masanjin.net>


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

end of thread, other threads:[~2008-11-10  5:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-06 22:07 [sup-talk] Can't get emacs to open in flyspell-mode Steve Goldman
2008-11-07  1:02 ` William Morgan
2008-11-07 14:23   ` Steve Goldman
2008-11-07 22:03 ` Christopher Warrington
2008-11-07 22:24   ` Steve Goldman
2008-11-10  5:13     ` William Morgan

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