package gforth
tag 587318 + pending
thanks

On Sun, Jun 27, 2010 at 01:54:13PM +0100, Reuben Thomas wrote:
> Package: gforth
> Version: 0.6.2-7.3
> Severity: wishlist
> 
> Most Emacs programming language modes in Debian auto-add their file
> suffixes to the auto-mode-alist; could you please do the same for the
> handy Forth mode?
> 
> I’d be happy to help if the maintainer is unfamiliar with Emacs.

Hi,

I've added the attached patch to my Subversion repo; I admit that I'm not
very well versed in e-lisp, so any suggestions / reproaches would be
welcome :)

BTW, is there some kind of a list of the filename extensions "registered"
by the various Emacs modes in Debian?  Meaning, is there a way for me to
check if I'm stepping on anybody's toes by grabbing .fs, .4th, and .fth?

Thanks for improving the Forth Experience in Debian! :)

G'luck,
Peter

-- 
Peter Pentchev  [email protected]    [email protected]    [email protected]
PGP key:        http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
Hey, out there - is it *you* reading me, or is it someone else?
Description: Auto-activate forth-mode on loading Forth source files.
Bug-Debian: http://bugs.debian.org/587318
Origin: other: http://svn.ringlet.net/svn/ringlet/mail/dma/
Forwarded: no
Author: Peter Pentchev <[email protected]>
Last-Update: 2010-06-29

--- a/gforth.el
+++ b/gforth.el
@@ -142,6 +142,14 @@
 ; 
 ; Folding neuschreiben (neue Parser-Informationen benutzen)
 
+;;; Add Forth source file suffixes (Peter Pentchev <[email protected]>)
+;;; http://bugs.debian.org/587318
+;;;
+(setq auto-mode-alist
+  (append '(("\\.fs$" . forth-mode)
+    ("\\.4th$" . forth-mode)
+    ("\\.fth$" . forth-mode)) auto-mode-alist))
+
 ;;; Motion-hooking (dk)
 ;;;
 (defun forth-idle-function ()

Attachment: signature.asc
Description: Digital signature

Reply via email to