[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/jinx 4d7f8f093a 2/2: Simplify
From: |
ELPA Syncer |
Subject: |
[elpa] externals/jinx 4d7f8f093a 2/2: Simplify |
Date: |
Wed, 3 May 2023 18:58:11 -0400 (EDT) |
branch: externals/jinx
commit 4d7f8f093ae21d47a92e6f40e08f1fff4b067dcc
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Simplify
---
jinx.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/jinx.el b/jinx.el
index 1597a65d77..adef739e92 100644
--- a/jinx.el
+++ b/jinx.el
@@ -499,7 +499,7 @@ If CHECK is non-nil, always check first."
(defun jinx--get-org-language ()
"Get language from Org #+language keyword."
(when (and (not (local-variable-p 'jinx-languages))
- (derived-mode-p 'org-mode))
+ (derived-mode-p #'org-mode))
(save-excursion
(save-match-data
(goto-char (point-min))
@@ -887,7 +887,7 @@ If prefix argument ALL non-nil correct all misspellings."
jinx--include-faces (jinx--mode-list jinx-include-faces)
jinx--exclude-faces (jinx--mode-list jinx-exclude-faces)
jinx--camel (or (eq jinx-camel-modes t)
- (seq-some #'derived-mode-p jinx-camel-modes))
+ (apply #'derived-mode-p jinx-camel-modes))
jinx--session-words (split-string jinx-local-words))
(jinx--load-dicts)
(add-hook 'window-state-change-hook #'jinx--reschedule nil t)
@@ -913,7 +913,7 @@ If prefix argument ALL non-nil correct all misspellings."
(when (and (not (or noninteractive
buffer-read-only
(eq (aref (buffer-name) 0) ?\s)))
- (seq-some #'derived-mode-p jinx-include-modes))
+ (apply #'derived-mode-p jinx-include-modes))
(jinx-mode 1)))
(provide 'jinx)