branch: elpa/d-mode
commit 026fceb78e13d67778d72d90ba83f337d0144707
Author: Silas S. Brown <[email protected]>
Commit: Vladimir Panteleev <[email protected]>
Update auto-mode-alist when run from init file (fixes #88) (#89)
* Update auto-mode-alist when run from init file (fixes #88)
---
d-mode.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/d-mode.el b/d-mode.el
index 1685476..6b89c49 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -37,6 +37,9 @@
;; (autoload 'd-mode "d-mode" "Major mode for editing D code." t)
;; (add-to-list 'auto-mode-alist '("\\.d[i]?\\'" . d-mode))
;;
+;; Alternatively you can load d-mode.el explicitly:
+;; (load "d-mode.el")
+;;
;; cc-mode version 5.30 or greater is required.
;; You can check your cc-mode with the command M-x c-version.
;; You can get the latest version of cc-mode at http://cc-mode.sourceforge.net
@@ -709,7 +712,8 @@ The expression is added to `compilation-error-regexp-alist'
and
(advice-add 'c-add-stmt-syntax :around #'d-around--c-add-stmt-syntax))
;;----------------------------------------------------------------------------
-;;;###autoload (add-to-list 'auto-mode-alist '("\\.d[i]?\\'" . d-mode))
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.d[i]?\\'" . d-mode))
;; Custom variables
;;;###autoload