branch: elpa/powershell
commit fd3c55f4dfa9ba3e3f7a8ca96c2e994bbebc829b
Author: Joe Schafer <[email protected]>
Commit: Joe Schafer <[email protected]>
Move ;; Code declaration and add file extenstion hook.
---
powershell-mode.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/powershell-mode.el b/powershell-mode.el
index 205688be723..3c430706efd 100644
--- a/powershell-mode.el
+++ b/powershell-mode.el
@@ -43,11 +43,15 @@
;; 2012/10/05 Added eldoc support. Fixed bug where indent could loop.
;; See comment below on how to generate powershell-eldoc.el
+
+;;; Code:
+
(eval-when-compile (require 'thingatpt))
(eval-when-compile (require 'speedbar))
(require 'compile nil t)
-;;; Code:
+;;;###autoload
+(add-to-list 'auto-mode-alist (cons (purecopy "\\.ps1\\'") 'powershell-mode))
;; User Variables