[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/forth-mode 695bb04ebc 002/153: A humble beginning.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/forth-mode 695bb04ebc 002/153: A humble beginning. |
Date: |
Sat, 29 Jan 2022 08:02:05 -0500 (EST) |
branch: elpa/forth-mode
commit 695bb04ebcad4787fcd2535590dd5707809ffd55
Author: Lars Brinkhoff <lars@nocrew.org>
Commit: Lars Brinkhoff <lars@nocrew.org>
A humble beginning.
---
.gitignore | 2 ++
forth-mode.el | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 56 insertions(+)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000000..6302bc32b6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*~
+*.elc
diff --git a/forth-mode.el b/forth-mode.el
new file mode 100644
index 0000000000..815d18b571
--- /dev/null
+++ b/forth-mode.el
@@ -0,0 +1,54 @@
+;;;; -*- emacs-lisp -*-
+
+(defvar forth-mode-map)
+
+(defvar forth-mode-syntax-table
+ (let ((table (make-syntax-table)))
+ (modify-syntax-entry ?\\ "<" table)
+ (modify-syntax-entry ?\n ">" table)
+ (modify-syntax-entry ?\( "<" table)
+ (modify-syntax-entry ?\) ">" table)
+ (modify-syntax-entry ?\: "(" table)
+ (modify-syntax-entry ?\; ")" table)
+ (modify-syntax-entry ?[ "(" table)
+ (modify-syntax-entry ?] ")" table)
+ (modify-syntax-entry ?\? "_" table)
+ (modify-syntax-entry ?! "_" table)
+ (modify-syntax-entry ?@ "_" table)
+ (modify-syntax-entry ?< "_" table)
+ (modify-syntax-entry ?> "_" table)
+ (modify-syntax-entry ?. "_" table)
+ (modify-syntax-entry ?, "_" table)
+ table))
+
+(defvar forth-mode-hooks)
+
+;;;### autoload
+(defun forth-mode ()
+ "Major mode for editing Forth files."
+ (interactive)
+ (kill-all-local-variables)
+ (set-syntax-table forth-mode-syntax-table)
+ ;; (make-local-variable ...)
+ (setq major-mode 'forth-mode
+ mode-name "Forth"
+ ;; font-lock-defaults
+ indent-line-function #'forth-indent
+ comment-indent-function #'forth-indent-comment
+ comment-start-skip "\\((\\*?\\|\\\\\\) *"
+ comment-start "("
+ comment-end ")")
+ (run-mode-hooks 'forth-mode-hooks))
+
+(add-to-list 'auto-mode-alist '("\\.\\(f\\|fs\\|fth\\)\\'" . forth-mode))
+
+;;; : ; does> variable constant value
+;;; if else then do loop begin while repeat again until postpone
+
+(defun forth-forward-sexp ())
+(defun forth-backward-sexp ())
+(defun forth-kill-sexp ())
+(defun forth-beginning-of-defun ())
+(defun forth-end-of-defun ())
+
+(provide 'forth-mode)
- [nongnu] elpa/forth-mode 0030189ff8 018/153: Prepare for MELPA., (continued)
- [nongnu] elpa/forth-mode 0030189ff8 018/153: Prepare for MELPA., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 8471704670 116/153: Add more font lock keywords, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 9300eb75c4 025/153: Remove stubs., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 778470cbcb 014/153: Load a file into an interactive Forth session., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 9855800cb7 053/153: Start a user manual., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 3deee67777 097/153: Emacs 23: Don't test font-lock., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode b455a556fe 056/153: Add C-M-x, forth-eval-defun., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 973481a1c5 007/153: Add some autoloads., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 244c416c4d 013/153: Variable for secifying Forth executable., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode cdab2e4ec1 038/153: Also recognise .4th., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 695bb04ebc 002/153: A humble beginning.,
ELPA Syncer <=
- [nongnu] elpa/forth-mode 24d3d052fe 003/153: More work. Font lock and navigation somewhat usable., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 93756ec224 005/153: Some basic and flawed support for block files., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode bca8f01218 004/153: Make it work in older Emacsen without prog-mode., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode effb52b8e0 009/153: Load files from load-path., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 3047dfa37a 008/153: Run a subprocess Forth for interaction., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 6ab334684b 010/153: Send a string to an interactive Forth session., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode b6b1f049b0 017/153: Restart an interactive Forth session., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode 7c75c452e9 022/153: Correct autoload cookie format, ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode e4ed4a8acf 050/153: Test with both Emacs 23 and 24., ELPA Syncer, 2022/01/29
- [nongnu] elpa/forth-mode cc267b4b85 043/153: Symbol completion. Candidates come from a running Forth., ELPA Syncer, 2022/01/29