[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"
- [nongnu] elpa/bison-mode 675df47 25/29: flex-mode variant, (continued)
- [nongnu] elpa/bison-mode 675df47 25/29: flex-mode variant, ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 0de3ce2 15/29: Removing some commented-out debugging code., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 0434673 04/29: Removing dependency on flex-mode., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 25d6d91 06/29: More checkdoc fixes., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 3a7fd59 08/29: Fix byte-compile warnings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 9dcb46e 02/29: Checking in the current state of bison-mode., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode bd0d1eb 03/29: Making checkdoc happier., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 4c3ede9 05/29: Removing make-regexp dependency., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 13622b4 13/29: Removing unnecessary require (define-derived-mode is autoloaded)., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 57339f2 16/29: Adding a changelog., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 4fd075f 17/29: Automatically start bison-mode in .y and .l files.,
ELPA Syncer <=
- [nongnu] elpa/bison-mode f52263f 18/29: Simplifying font-lock variables., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode c29fd9b 19/29: Fix #3., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 3509f18 20/29: Removing commented-out code., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 314af3b 24/29: autoload jison (#8), ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 7776bb5 26/29: Convert all user-definable defvar into defcustom in bison-mode defgroup., ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 61eba0f 27/29: Properly namespace functions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 1193903 28/29: Roll version to reflect changelog, ELPA Syncer, 2021/08/29
- [nongnu] elpa/bison-mode 4f2e203 29/29: Roll version now 0.3 is tagged, ELPA Syncer, 2021/08/29