embedded systems developers tools, cross compilers
  Home  |   SwiftX Archive  |   SwiftForth Archive  |

Re: emacs forth mode?

From: Leon Wagner <leon_at_forth.com>
Date: Wed, 28 Jul 2004 10:44:25 -0700

It's part of the gforth tarball. Do a Google search for gforth.el and
you'll find lots of places to get it from.

> -----Original Message-----
> From: swiftx-bounce_at_forth.com [mailto:swiftx-bounce_at_forth.com]On Behalf
> Of wiblake_at_tycoint.com
> Sent: Wednesday, July 28, 2004 10:43
> To: swiftx_at_forth.com
> Subject: [swiftx] Re: emacs forth mode?
>
>
> Where do you find gforth.el?
> Thanks,
> Wil Blake
>
>
>
> -----Original Message-----
> From: Charles Ehrenpreis [mailto:charlese_at_adelphia.net]
> Sent: Wednesday, July 28, 2004 10:03 AM
> To: swiftx_at_forth.com
> Subject: [swiftx] Re: emacs forth mode?
>
> Matthew Karas wrote:
>
> > I'm trying to get my emacs to be a bit nicer with forth code
> files (using
> > winxp ) but it really likes to thing that its looking at fortran code.
> > Any procedures on setting up emacs to work with forth code?
>
> I'm presuming you have some familiarity with customizing emacs (and that
> you're using GnuEmacs). Use gforth.el. Customize your .emacs (_emacs in
> WinXP) in your 'HOME' directory by adding something like this:
>
> ;;; forth
> ;;;
> (setq auto-mode-alist
> (cons '("\\.f\\'" . forth-mode) auto-mode-alist))
>
> (autoload 'forth-mode "gforth" "Major mode for forth code.")
> (add-hook 'forth-mode-hook
> (function
> (lambda ()
> (setq forth-indent-level 2)
> (setq forth-minor-indent-level 2))))
>
> I've been happily using GnuEmacs as my only forth source-code editor for
> over 2 years, in a SwiftX environment. The only problem I've found is that
> the gforth.el code doesn't recognize the '{' and '}' pair as containing
> comments and as a result, 'colors' the key words even in the
> comments. You
> can play with the indent-levels as you prefer by modifying the _emacs code
> above.
>
> If you have any further questions on this, please let me know, and if you
> make some interesting mods to gforth.el, I'd be very interested in knowing
> about them!
>
> Live long and prosper,
>
> Charles Ehrenpreis
> Executec, Inc.
>
>
> ----------------------------------------------------------------------
> swiftx_at_forth.com The SwiftX programming discussion email list
> To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com
> For list command help, send subject "help" to swiftx-request_at_forth.com
> Message archives are located at http://www.forth.com/archive/swiftx
> ----------------------------------------------------------------------
> This list is a forum for SwiftX users. For product support and bug
> reports, please send email to support_at_forth.com
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> swiftx_at_forth.com The SwiftX programming discussion email list
> To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com
> For list command help, send subject "help" to swiftx-request_at_forth.com
> Message archives are located at http://www.forth.com/archive/swiftx
> ----------------------------------------------------------------------
> This list is a forum for SwiftX users. For product support and bug
> reports, please send email to support_at_forth.com
> ----------------------------------------------------------------------
>
>

----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe" to swiftx-request_at_forth.com
For list command help, send subject "help" to swiftx-request_at_forth.com
Message archives are located at http://www.forth.com/archive/swiftx
----------------------------------------------------------------------
This list is a forum for SwiftX users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Wed Jul 28 2004 - 10:47:06 PDT

This archive was generated by hypermail 2.2.0 : Fri Dec 05 2008 - 03:04:23 PST