Nsi-mode for emacs: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
No edit summary |
(work-around for missing nsi-point function) |
||
Line 8: | Line 8: | ||
which is not defined anywhere. It does do syntax highlighting though. But everytime | 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. | you try to indent a line, an error message will be displayed. | ||
If you have python-mode.el loaded, you can work-around this problem by executing: | |||
(defalias 'nsi-point 'py-point) | |||
== Description == | == Description == |
Revision as of 19:37, 9 November 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.
If you have python-mode.el loaded, you can work-around this problem by executing:
(defalias 'nsi-point 'py-point)
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.