Skip to content

Commit

Permalink
Use custom-set-default in set function for custom variables
Browse files Browse the repository at this point in the history
  • Loading branch information
s-kostyaev committed Dec 28, 2023
1 parent 4bee132 commit 4bf9c6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions NEWS.org
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions ellama.el
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4bf9c6c

Please sign in to comment.