From 3ac1d3ec75730548d74a1237a0fb95e35b84a6d3 Mon Sep 17 00:00:00 2001 From: Protesilaos Stavrou Date: Sun, 7 Jan 2024 06:59:34 +0200 Subject: [PATCH] emacs: document some more auto-mode-alist entries --- emacs/.emacs.d/prot-emacs.org | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/emacs/.emacs.d/prot-emacs.org b/emacs/.emacs.d/prot-emacs.org index ec2f98eb..5bc8b1ff 100644 --- a/emacs/.emacs.d/prot-emacs.org +++ b/emacs/.emacs.d/prot-emacs.org @@ -7357,11 +7357,16 @@ Meant to be added to `prog-mode-hook'." (add-to-list 'auto-mode-alist '("\\(README\\|CHANGELOG\\|COPYING\\|LICENSE\\)\\'" . text-mode)) #+end_src -*** TODO The =prot-emacs-langs.el= settings for common file types +*** The =prot-emacs-langs.el= settings for common file types :PROPERTIES: :CUSTOM_ID: h:1a132701-9487-4af0-8759-a8d64d02bf1f :END: +As I explained above about ~auto-mode-alist~ ([[#h:c5fbd6dd-2982-4fca-aeed-d0e750d399bd][The =prot-emacs-langs.el= settings for plain text]]), +this is how we tell Emacs what major mode to use for files that match +the given regular expression. The =PKGBUILD= is for Arch Linux package +recipes, by the way. + #+begin_src emacs-lisp :tangle "prot-emacs-modules/prot-emacs-langs.el" ;;;; Arch Linux and AUR package scripts (sh-mode) (add-to-list 'auto-mode-alist '("PKGBUILD" . sh-mode))