emacs: document some more auto-mode-alist entries

This commit is contained in:
Protesilaos Stavrou 2024-01-07 06:59:34 +02:00
parent 456e5592df
commit 3ac1d3ec75
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -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))