Nsi-mode for emacs: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(More elegant expression to add to auto-mode-alist)
No edit summary
Line 3: Line 3:
== Links ==
== Links ==
download nsi-mode.el [http://www.xs4all.nl/%7Ehdam/nsi-mode.el here]
download nsi-mode.el [http://www.xs4all.nl/%7Ehdam/nsi-mode.el here]
== Warning ==
This mode currently does not work properly. It requires a "nsi-point" function
which is not defined anywhere. It does do syntax highlighting though. But everytime
you try to indent a line, an error message will be displayed.


== Description ==
== Description ==

Revision as of 01:42, 20 May 2006

Author: hansvandam (talk, contrib)


Links

download nsi-mode.el here

Warning

This mode currently does not work properly. It requires a "nsi-point" function which is not defined anywhere. It does do syntax highlighting though. But everytime you try to indent a line, an error message will be displayed.

Description

just add the following lines (with the right paths) to your .emacs file:

(autoload 'nsi-mode "nsi-mode" "nsi editing mode." t)
(add-to-list 'auto-mode-alist '("\\.nsi$" . nsi-mode))

and put nsi-mode.el somewhere in your load-path variable e.g. I have a load path set as :

(defvar extra-stuff-path "c:/extra" "defines the extra path")
(setq load-path (cons extra-stuff-path load-path)

then you can compile your nsi files in emacs with Ctrl-F9.