File: 09-elisp-auto-mode.patch

package info (click to toggle)
gforth 0.7.2%2Bdfsg1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,332 kB
  • ctags: 2,064
  • sloc: ansic: 8,506; sh: 3,643; lisp: 1,780; makefile: 984; yacc: 186; sed: 141; lex: 102; awk: 21
file content (25 lines) | stat: -rw-r--r-- 702 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 <roam@ringlet.net>
Last-Update: 2014-02-25

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