a major mode for emacs for editing n3 and turtle RDF
Emacs Lisp
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
n3-mode.el

README

This is an emacs major mode for editing N3 and Turtle RDF documents
originally created by Hugo Haas and Dave Pawson.

Put n3-mode.el somewhere emacs can find it (e.g. ~/.emacs.d/vendor/)
And add the following to your .emacs file:

;;
;; n3 mode
;;

(add-to-list 'load-path "{path}/n3-mode.el")
(autoload 'n3-mode "n3-mode" "Major mode for OWL or N3 files" t)

;; Turn on font lock when in n3 mode
(add-hook 'n3-mode-hook
          'turn-on-font-lock)

(setq auto-mode-alist
      (append
       (list
        '("\\.n3" . n3-mode)
        '("\\.owl" . n3-mode))
       auto-mode-alist))

;; Replace {path} with the full path to n3-mode.el on your system.

;; If you want to make it load just a little faster;
;; C-x f n3-mode.el
;; M-x byte-compile-file n3-mode.el