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

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

[nongnu] elpa/adoc-mode 141af8c56a 123/199: Associate with .adoc and .as


From: ELPA Syncer
Subject: [nongnu] elpa/adoc-mode 141af8c56a 123/199: Associate with .adoc and .asciidoc
Date: Sun, 3 Sep 2023 06:59:39 -0400 (EDT)

branch: elpa/adoc-mode
commit 141af8c56aa3efc572c04767c25ba946341a6c05
Author: Ville Skyttä <ville.skytta@upcloud.com>
Commit: TobiasZawada <i@tn-home.de>

    Associate with .adoc and .asciidoc
---
 adoc-mode.el | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/adoc-mode.el b/adoc-mode.el
index 767b2a2685..23435054ab 100644
--- a/adoc-mode.el
+++ b/adoc-mode.el
@@ -99,10 +99,12 @@
 ;; 
 ;; Each of the following is optional
 ;; 
-;; * According to AsciiDoc manual, .txt is the standard file extension of
+;; * According to an old AsciiDoc manual, .txt is the standard file extension 
of
 ;;   AsciiDoc files. Add the following to your initialization file to open all
 ;;   .txt files with adoc-mode as major mode automatically: `(add-to-list
-;;   'auto-mode-alist (cons "\\.txt\\'" 'adoc-mode))`
+;;   'auto-mode-alist (cons "\\.txt\\'" 'adoc-mode))`.
+;;   More recent conventions for AsciiDoc file extensions include `.adoc` and
+;;   `.asciidoc`, these are associated automatically.
 ;; 
 ;; * If your default face is a fixed pitch (monospace) face, but in AsciiDoc
 ;;   files you liked to have normal text with a variable pitch face,
@@ -3038,6 +3040,9 @@ Turning on Adoc mode runs the normal hook 
`adoc-mode-hook'."
 
   (easy-menu-add adoc-mode-menu))
 
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.a\\(?:scii\\)?doc\\'" . adoc-mode))
+
 
 ;;;; non-definitions evaluated during load  
 (adoc-calc)



reply via email to

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