From 34f44b0f81651a5ca4ffcf28c7e6603dcccda2e8 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 10 Dec 2023 15:08:15 -0500 Subject: snakemake-mode-setup-mmm: Fix condition for warning snakemake-mode-setup-mmm should give this warning when mmm-global-mode is nil, but it does the opposite. --- snakemake-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snakemake-mode.el b/snakemake-mode.el index a826d8c..702e9a4 100644 --- a/snakemake-mode.el +++ b/snakemake-mode.el @@ -405,7 +405,7 @@ For automatic highlighting of embedded regions, you need to set (unless (require 'mmm-mode nil t) (user-error "You need to install mmm-mode")) - (when (unless (bound-and-true-p mmm-global-mode)) + (unless (bound-and-true-p mmm-global-mode) (display-warning 'snakemake-mode "To get automatic syntax highlighting of embedded R, you need to set mmm-global-mode to a non-nil value such as 'maybe.")) -- cgit v1.2.3