Always define nsis mode.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 28 Jan 2010 20:24:42 +0200
changeset 271 bf0c4a022c5a
parent 270 61173396cfe4
child 272 f7fba93f4028
Always define nsis mode.
lisp/nsis-mode.el
--- a/lisp/nsis-mode.el	Thu Jan 28 20:20:25 2010 +0200
+++ b/lisp/nsis-mode.el	Thu Jan 28 20:24:42 2010 +0200
@@ -14,16 +14,15 @@
 
 ;;; Code:
 
-(when (eq window-system 'w32)
-  (define-generic-mode 'nsis-generic-mode
-    (list ?\;)
-    '("Section" "SectionEnd" "Function" "FunctionEnd" "Call" "Goto")
-    '(("!\\([A-Za-z]+\\)" (1 'font-lock-builtin-face))
-      ("$[({]?\\([A-Za-z0-9_]+\\)[)}]?" (1 'font-lock-variable-name-face))
-      )
-    (list "\\.\\(nsi\\|nsh\\)$")
-    nil
-    "Generic mode for nsis files."))
+(define-generic-mode 'nsis-mode
+  (list ?\;)
+  '("Section" "SectionEnd" "Function" "FunctionEnd" "Call" "Goto")
+  '(("!\\([A-Za-z]+\\)" (1 'font-lock-builtin-face))
+    ("$[({]?\\([A-Za-z0-9_]+\\)[)}]?" (1 'font-lock-variable-name-face))
+    )
+  (list "\\.\\(nsi\\|nsh\\)$")
+  nil
+  "Generic mode for nsis files.")
 
 (provide 'nsis-mode)