branch: elpa/adoc-mode commit 141af8c56aa3efc572c04767c25ba946341a6c05 Author: Ville Skyttä <ville.sky...@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)