Skip to content

virtual-earth-de/ttl-mode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

This is an Emacs mode for editing Turtle (RDF) files.

This is based on ttl-mode.el from Peter Vasil, and is not that much modified.

I discovered that I can use my experimental syntax with {} for nested named nodes with this ttl mode, I do not need to extend it.

OTOH I need to add to the syntax table at least to recognise QNames as symbols, so the current ttl-mode does not cut it.

  • - - - Notes from original README follow:

**Note**: I’m no longer actively developing this. I’m willing to accept pull requests; and if someone wants to take over the code, I’d probably take little persuading to agree.

It is based on an excellent start made by Hugo Haas. I’ve extended it to support indentation, some electric punctuation, and hungry delete.

To use, download the file `ttl-mode.el` from [Github](https://github.com/nxg/ttl-mode) (or clone the project), put the file in the emacs load path (look at the variable load-path to find where emacs currently searches), and add something like the following to your `.emacs` file.

(autoload 'ttl-mode "ttl-mode" "Major mode for Turtle files" t)
(add-hook 'ttl-mode-hook    ; Turn on font lock when in ttl mode
          'turn-on-font-lock)
(setq auto-mode-alist
      (append
       (list
        '("\\.ttl" . ttl-mode)
        '("\\.ntl" . ttl-mode))
       auto-mode-alist))

Comments and contributions most welcome.

`ttl-mode.el` is released under the terms of the [two-clause BSD licence](https://opensource.org/licenses/bsd-license.php) (see the `ttl-model.el` header for the licence text).

Norman Gray https://nxg.me.uk

About

An Emacs mode for editing my own little Nested Turtle (RDF) files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 100.0%