Giter VIP home page Giter VIP logo

txl-mode.el's Introduction

Emacs Major Mode for TXL (fork from txl.ca)

Contributed by Markus Stoy, [email protected], Rostock (Germany), November/December 2003
Updated for Emacs/X-Emacs compatibility, Ivan N. Veselov, [email protected], October 2008
A few updates and enhancements, 8dcc, see https://github.com/8dcc/txl-mode.el

Manual installation
-------------------

1. Copy the file txl-mode.el to a directory where Emacs can find it
   (somewhere within load-path).  To install for yourself only, 
   this can often be in a directory called ".elisp" in your home directory.
   To install for everyone on your system, it should be in the Emacs 
   site-lisp directory, often "/usr/local/share/emacs/site-lisp".

2. Add the following two lines to the Emacs init file (normally ".emacs"
   or "init.el") in your home directory.

    (require 'txl-mode)
    (add-to-list 'auto-mode-alist '("\\.\\([tT]xl\\|[gG]rm\\|[gG]rammar\\|[rR]ul\\(es\\)?\\|[mM]od\\(ule\\)?\\)$" . txl-mode))

3. Test by editing a TXL source file.

Installation using straight.el
------------------------------

Add the following to your emacs init file.

    (straight-use-package
     '(txl-mode :type git :host github :repo "8dcc/txl-mode.el"))
    (add-to-list 'auto-mode-alist '("\\.\\([tT]xl\\|[gG]rm\\|[gG]rammar\\|[rR]ul\\(es\\)?\\|[mM]od\\(ule\\)?\\)$" . txl-mode))

See also https://github.com/radian-software/straight.el

Features
--------
   - syntax highlighting (with font-lock-mode)
   - automatic indentation according to TXL style guide (perhaps stil buggy...)
   - compile/debug/run TXL program from within Emacs
   - comment/uncomment regions
   - insert skeletion rules/functions/defines, find and insert matching end's
   - abbreviations for keywords (with abbrev-mode; scroll down to see a list)
   - TXL submenu which contains all new functions and their keyboard shortcuts

Wish list
---------
   - navigation (jump to nonterminal/function/rule under cursor, 
     next/previous nonterminal/function/rule, ...)
   - use comint for run/debug/compile instead of simple shell-command? 
     (which looks ugly under Windows)

Known bugs
----------
   - 'x% is highlighted as comment
   - compile and debug don't work under Windows

txl-mode.el's People

Contributors

8dcc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.