* lisp/files.el (auto-mode-alist): Prefer C-mode for .xs. (Bug#7071)
This commit is contained in:
parent
ce009d0b26
commit
54238e6d10
2 changed files with 5 additions and 0 deletions
|
@ -2315,6 +2315,9 @@ ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\|7Z\\)\\'" . archive-mode)
|
|||
;; eCos uses "ld" and "ldi". Netbsd uses "ldscript.*".
|
||||
("\\.ld[si]?\\'" . ld-script-mode)
|
||||
("ld\\.?script\\'" . ld-script-mode)
|
||||
;; .xs is also used for ld scripts, but seems to be more commonly
|
||||
;; associated with Perl .xs files (C with Perl bindings). (Bug#7071)
|
||||
("\\.xs\\'" . c-mode)
|
||||
("\\.x[bdsru]?[cn]?\\'" . ld-script-mode)
|
||||
;; Common Lisp ASDF package system.
|
||||
("\\.asd\\'" . lisp-mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue