From 9e50f32f650c2bdb99fb425003a3197ff1be7e71 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 16 Aug 2023 01:42:57 +0200 Subject: emacs: Don’t use ‘rx’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/emacs/config.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/emacs/config.org b/.config/emacs/config.org index f2bb1f6..03692c0 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -1022,8 +1022,8 @@ file with a certain file extension. (require 'rust-ts-mode) (require 'yaml-ts-mode) - (cl-dolist (pair `((,(rx ".rs" eos) . rust-ts-mode) - (,(rx (or ".yml" ".yaml")) . yaml-ts-mode))) + (cl-dolist (pair '(("\\.rs\\'" . rust-ts-mode) + ("\\.ya?ml\\'" . yaml-ts-mode))) (add-to-list 'auto-mode-alist pair)) #+END_SRC -- cgit v1.2.3