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

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

[nongnu] elpa/bison-mode 4fd075f 17/29: Automatically start bison-mode i


From: ELPA Syncer
Subject: [nongnu] elpa/bison-mode 4fd075f 17/29: Automatically start bison-mode in .y and .l files.
Date: Sun, 29 Aug 2021 10:58:43 -0400 (EDT)

branch: elpa/bison-mode
commit 4fd075fbda7e0ec827e92d6b1dc79b75a9967170
Author: Wilfred Hughes <me@wilfred.me.uk>
Commit: Wilfred Hughes <me@wilfred.me.uk>

    Automatically start bison-mode in .y and .l files.
---
 README.md     |  2 ++
 bison-mode.el | 10 +++++-----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index 7d7954f..ea2d18d 100644
--- a/README.md
+++ b/README.md
@@ -13,6 +13,8 @@ Many byte-compiler fixes.
 
 Fixed a crash on indentation.
 
+bison-mode is now started automatically for .y and .l files.
+
 ### 0.1
 
 Initial release.
diff --git a/bison-mode.el b/bison-mode.el
index bfe1126..790ccbd 100644
--- a/bison-mode.el
+++ b/bison-mode.el
@@ -70,15 +70,15 @@
 
 ;;;; todo:  should make available a way to use C-electricity if in C sexps
 
-;;;;  these are the lines i use to set up correct auto-ing
-;;(autoload 'bison-mode "bison-mode.el")
-;;(add-to-set! auto-mode-alist '("\\.y$" . bison-mode))
-;;(add-to-set! auto-mode-alist '("\\.l$" . bison-mode))
-
 ;;; Code:
 
 (require 'cc-mode)
 
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.y\\'" . bison-mode))
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.l\\'" . bison-mode))
+
 ;; *************** internal vars ***************
 
 (defvar bison--declarers '("%union" "%token" "%type"



reply via email to

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