a major mode for emacs for editing n3 and turtle RDF
Emacs Lisp
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README some more readme Oct 5, 2010
n3-mode.el added comment/uncomment block with M-; Oct 7, 2010

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