From 135bc5996591966845549cd9d622f7aaf16385d8 Mon Sep 17 00:00:00 2001 From: dalu Date: Mon, 30 Jun 2025 14:53:29 +0800 Subject: [PATCH] Fix auto-mode-alist --- fsharp-mode.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fsharp-mode.el b/fsharp-mode.el index 41199e6..82bd5d8 100644 --- a/fsharp-mode.el +++ b/fsharp-mode.el @@ -113,8 +113,9 @@ (define-key map [eval-phrase] '("Eval phrase" . fsharp-eval-phrase))))) ;;;###autoload -(add-to-list 'auto-mode-alist '("\\.fs[iylx]?\\'" . fsharp-mode)) -(add-to-list 'auto-mode-alist '("\\.fsproj\\'" . nxml-mode)) +(progn + (add-to-list 'auto-mode-alist '("\\.fs[iylx]?\\'" . fsharp-mode)) + (add-to-list 'auto-mode-alist '("\\.fsproj\\'" . nxml-mode))) (defvar fsharp-mode-syntax-table nil "Syntax table in use in fsharp mode buffers.")