emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/auctex 653e272 12/25: Deprioritize "\\.drv\\'" in auto-


From: Tassilo Horn
Subject: [elpa] externals/auctex 653e272 12/25: Deprioritize "\\.drv\\'" in auto-mode-alist
Date: Sun, 21 Mar 2021 11:44:41 -0400 (EDT)

branch: externals/auctex
commit 653e2723a5925f715d59442893c63ed657349f3f
Author: Brian Leung <leungbk@mailfence.com>
Commit: Tassilo Horn <tsdh@gnu.org>

    Deprioritize "\\.drv\\'" in auto-mode-alist
    
    Guix and Nix have derivation files that look like
    "/gnu/store/.*\\.drv".  To avoid choosing the wrong mode, we prefer to
    use more stringent regexps for those corresponding modes, and add the
    less-stringent regexp here to the end of auto-mode-alist.
    
    * latex.el (auto-mode-alist): Deprioritize "\\.drv\\'" in
    auto-mode-alist.
---
 latex.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/latex.el b/latex.el
index b4fd7d3..3385159 100644
--- a/latex.el
+++ b/latex.el
@@ -6048,7 +6048,7 @@ This happens when \\left is inserted."
 (TeX-abbrev-mode-setup latex-mode)
 
 ;;;###autoload
-(add-to-list 'auto-mode-alist '("\\.drv\\'" . latex-mode))
+(add-to-list 'auto-mode-alist '("\\.drv\\'" . latex-mode) t) ;; append to the 
end of `auto-mode-alist' to give higher priority to Guix/Nix's derivation modes
 
 ;; HeVeA files (LaTeX -> HTML converter: http://hevea.inria.fr/)
 ;;;###autoload



reply via email to

[Prev in Thread] Current Thread [Next in Thread]