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

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

[elpa] externals/cobol-mode 3ef547576d: * cobol-mode.el (auto-mode-alist


From: Stefan Monnier
Subject: [elpa] externals/cobol-mode 3ef547576d: * cobol-mode.el (auto-mode-alist): Set and autoload
Date: Mon, 29 Aug 2022 15:48:20 -0400 (EDT)

branch: externals/cobol-mode
commit 3ef547576df6f0da06d60499591428fd24b9098c
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    * cobol-mode.el (auto-mode-alist): Set and autoload
    
    Remove the installation instructions, since the package is supposed to
    be installed from GNU ELPA anyway.
---
 cobol-mode.el | 32 +++++++++++---------------------
 1 file changed, 11 insertions(+), 21 deletions(-)

diff --git a/cobol-mode.el b/cobol-mode.el
index 09e31e7f82..da574f452e 100644
--- a/cobol-mode.el
+++ b/cobol-mode.el
@@ -24,32 +24,18 @@
 
 ;;; Commentary:
 
-;; This file should not be confused with Rick Bielawski's cobol-mode.el
-;; (http://www.emacswiki.org/emacs/cobol-mode.el), which this mode attempts to
-;; supersede.
-
 ;; This COBOL mode features syntax highlighting for most modern COBOL dialects,
-;; indentation, code skeletons, rulers and basic formatting functions.
+;; indentation, code skeletons, rulers, and basic formatting functions.
 ;; Highlighting changes with the code format, which can be specified using the
 ;; M-x customize menu.
 
-;;;; Installation:
-
-;; To install cobol-mode.el, save it to your .emacs.d/ directory and add the
-;; following to your .emacs:
-;; (autoload 'cobol-mode "cobol-mode" "Major mode for highlighting COBOL 
files." t nil)
-
-;; To automatically load cobol-mode.el upon opening COBOL files, add this:
-;; (setq auto-mode-alist
-;;       (append
-;;        '(("\\.cob\\'" . cobol-mode)
-;;          ("\\.cbl\\'" . cobol-mode)
-;;          ("\\.cpy\\'" . cobol-mode))
-;;        auto-mode-alist))
+;; This file should not be confused with Rick Bielawski's cobol-mode.el
+;; (http://www.emacswiki.org/emacs/cobol-mode.el), which this mode attempts to
+;; supersede.
 
-;; Finally, I strongly suggest installing auto-complete-mode, which makes 
typing
-;; long keywords and variable names a thing of the past.  See
-;; https://github.com/auto-complete/auto-complete.
+;; Finally, I suggest installing auto-complete-mode, which makes typing
+;; long keywords and variable names a thing of the past.
+;; See https://github.com/auto-complete/auto-complete.
 
 ;;;; Known bugs:
 
@@ -3131,6 +3117,10 @@ start of area A, if fixed-format)."
   (set (make-local-variable 'ac-ignore-case) t)
   )
 
+;;;###autoload
+(add-to-list 'auto-mode-alist
+             '("\\.c\\(ob\\|bl\\|py\\)\\'" . cobol-mode))
+
 (provide 'cobol-mode)
 
 ;;; cobol-mode.el ends here



reply via email to

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