From 4bf9c6c08d43779a0ae838ba6a1045772050f8a4 Mon Sep 17 00:00:00 2001 From: Sergey Kostyaev Date: Thu, 28 Dec 2023 12:19:16 +0700 Subject: [PATCH] Use custom-set-default in set function for custom variables --- NEWS.org | 2 ++ ellama.el | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/NEWS.org b/NEWS.org index 7963128..ee0f096 100644 --- a/NEWS.org +++ b/NEWS.org @@ -1,3 +1,5 @@ +* Version 0.4.13 +- Use custom-set-default in set function for custom variables. * Version 0.4.12 - Add option to customize paragraphs filling behaviour. * Version 0.4.11 diff --git a/ellama.el b/ellama.el index 475aeb5..5c888a5 100644 --- a/ellama.el +++ b/ellama.el @@ -6,7 +6,7 @@ ;; URL: http://github.com/s-kostyaev/ellama ;; Keywords: help local tools ;; Package-Requires: ((emacs "28.1") (llm "0.6.0") (spinner "1.7.4")) -;; Version: 0.4.12 +;; Version: 0.4.13 ;; SPDX-License-Identifier: GPL-3.0-or-later ;; Created: 8th Oct 2023 @@ -140,7 +140,7 @@ "Key sequence for Ellama Commands." :type 'string :set (lambda (symbol value) - (set symbol value) + (custom-set-default symbol value) (when value (ellama-setup-keymap))) :group 'ellama) @@ -186,7 +186,7 @@ :type 'boolean :group 'ellama :set (lambda (symbol value) - (set symbol value) + (custom-set-default symbol value) (if value (ellama-setup-keymap) ;; If ellama-enable-keymap is nil, remove the key bindings