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

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

[nongnu] elpa/jade-mode 73893e8d8f 077/128: Merge pull request #34 from


From: ELPA Syncer
Subject: [nongnu] elpa/jade-mode 73893e8d8f 077/128: Merge pull request #34 from zonuexe/fix/auto-mode-tail-match
Date: Sat, 29 Jan 2022 08:24:48 -0500 (EST)

branch: elpa/jade-mode
commit 73893e8d8f1bcaf9f0252c6f020cdb3741d7125c
Merge: 6707074e67 fd367b9489
Author: Brian C <brian.m.carlson@gmail.com>
Commit: Brian C <brian.m.carlson@gmail.com>

    Merge pull request #34 from zonuexe/fix/auto-mode-tail-match
    
    Fix auto-mode-alist
---
 README.md      | 5 ++---
 jade-mode.el   | 3 +--
 stylus-mode.el | 2 +-
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md
index c8dd93dee8..0a747030ed 100644
--- a/README.md
+++ b/README.md
@@ -64,9 +64,8 @@ Add the following lines to any of your initialization files
 
     (add-to-list 'load-path "~/.emacs.d/vendor/jade-mode")
     (require 'sws-mode)
-    (require 'jade-mode)    
-    (add-to-list 'auto-mode-alist '("\\.styl$" . sws-mode))
-    (add-to-list 'auto-mode-alist '("\\.jade$" . jade-mode))
+    (require 'jade-mode)
+    (add-to-list 'auto-mode-alist '("\\.styl\\'" . sws-mode))
 
 ### Flymake support
 
diff --git a/jade-mode.el b/jade-mode.el
index da0d3c193d..d1ab4ea46d 100644
--- a/jade-mode.el
+++ b/jade-mode.el
@@ -255,8 +255,7 @@ Follows indentation behavior of `indent-rigidly'."
 
 
 ;;;###autoload
-(add-to-list 'auto-mode-alist '("\\.jade$" . jade-mode))
+(add-to-list 'auto-mode-alist '("\\.jade\\'" . jade-mode))
 
 (provide 'jade-mode)
 ;;; jade-mode.el ends here
-
diff --git a/stylus-mode.el b/stylus-mode.el
index 9849697ea2..b3b581c6d9 100644
--- a/stylus-mode.el
+++ b/stylus-mode.el
@@ -110,7 +110,7 @@
   (use-local-map stylus-mode-map))
 
 ;;;###autoload
-(add-to-list 'auto-mode-alist '("\\.styl$" . stylus-mode))
+(add-to-list 'auto-mode-alist '("\\.styl\\'" . stylus-mode))
 
 (provide 'stylus-mode)
 ;;; stylus-mode.el ends here



reply via email to

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