Nsi-mode for emacs: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(More elegant expression to add to auto-mode-alist) |
|||
Line 8: | Line 8: | ||
(autoload 'nsi-mode "nsi-mode" "nsi editing mode." t) | (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 | and put nsi-mode.el somewhere in your load-path variable |
Revision as of 10:46, 30 November 2005
Author: hansvandam (talk, contrib) |
Links
download nsi-mode.el here
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.