summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2010-09-23 00:34:40 -0700
committerGlenn Morris <rgm@gnu.org>2010-09-23 00:34:40 -0700
commit54238e6d1036e6798fd7a31a20090c17d444d323 (patch)
treee4ee7c96537ce9e9177ba7e6ac4fe3676d7fdb16 /lisp/files.el
parentce009d0b262f95249985fe0b898123a0830271b2 (diff)
downloademacs-54238e6d1036e6798fd7a31a20090c17d444d323.tar.gz
emacs-54238e6d1036e6798fd7a31a20090c17d444d323.tar.bz2
emacs-54238e6d1036e6798fd7a31a20090c17d444d323.zip
* lisp/files.el (auto-mode-alist): Prefer C-mode for .xs. (Bug#7071)
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 33e7d44d528..6d205a25273 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -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)