-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathREADME
29 lines (22 loc) · 764 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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