[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/jinx c83c9a6a86 2/3: jinx-languages: Strip .UTF-8 encod
From: |
ELPA Syncer |
Subject: |
[elpa] externals/jinx c83c9a6a86 2/3: jinx-languages: Strip .UTF-8 encoding suffix |
Date: |
Tue, 28 Mar 2023 07:58:50 -0400 (EDT) |
branch: externals/jinx
commit c83c9a6a86bfff441560ff87aaac82d27770af7c
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
jinx-languages: Strip .UTF-8 encoding suffix
---
jinx.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/jinx.el b/jinx.el
index ac4fd92cd6..c6183fa02c 100644
--- a/jinx.el
+++ b/jinx.el
@@ -123,9 +123,11 @@
"Face used for the accept action during correction.")
(defcustom jinx-languages
- (or (bound-and-true-p current-locale-environment)
- (getenv "LANG")
- "en_US")
+ (replace-regexp-in-string
+ "\\..*\\'" ""
+ (or (bound-and-true-p current-locale-environment)
+ (getenv "LANG")
+ "en_US"))
"List of languages."
:type '(choice string (repeat string)))