emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/d-mode 026fceb 176/346: Update auto-mode-alist when run fr


From: ELPA Syncer
Subject: [nongnu] elpa/d-mode 026fceb 176/346: Update auto-mode-alist when run from init file (fixes #88) (#89)
Date: Sun, 29 Aug 2021 11:00:25 -0400 (EDT)

branch: elpa/d-mode
commit 026fceb78e13d67778d72d90ba83f337d0144707
Author: Silas S. Brown <ssb22@users.noreply.github.com>
Commit: Vladimir Panteleev <github.private@thecybershadow.net>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]