Bump shell-maker dependency
This version has protection for accidental buffer closure built-in. No need to customize it in your own init file.
This commit is contained in:
parent
2d3e55c615
commit
07e6e66c0f
2 changed files with 1 additions and 15 deletions
14
README.org
14
README.org
|
@ -167,20 +167,6 @@ Add the following to your configuration to trigger summary functionality with ke
|
|||
(keymap-set embark-url-map "K" embark-kagi-url-map)
|
||||
#+end_src
|
||||
|
||||
** Confirm close of a FastGPT buffer
|
||||
|
||||
Christian Tietze wrote a [[https://christiantietze.de/posts/2024/01/chatgpt-shell-confirm-close-compose-buffer/][blog entry]] on preventing a ChatGPT buffer kill by mistake. Below is an adaptation for FastGPT:
|
||||
|
||||
#+begin_src elisp
|
||||
(defun confirm-before-killing-fastgpt ()
|
||||
(let ((buf (current-buffer)))
|
||||
(if (and (buffer-match-p "^\\*fastgpt\\*" buf))
|
||||
(yes-or-no-p "FastGPT Buffer! Kill anyway? ")
|
||||
t)))
|
||||
|
||||
(add-to-list 'kill-buffer-query-functions #'confirm-before-killing-fastgpt)
|
||||
#+end_src
|
||||
|
||||
* Changelog
|
||||
|
||||
** 0.2pre
|
||||
|
|
2
kagi.el
2
kagi.el
|
@ -6,7 +6,7 @@
|
|||
;; Maintainer: Bram Schoenmakers <me@bramschoenmakers.nl>
|
||||
;; Created: 16 Dec 2023
|
||||
;; Package-Version: 0.1
|
||||
;; Package-Requires: ((emacs "29.1") (shell-maker "0.44.1"))
|
||||
;; Package-Requires: ((emacs "29.1") (shell-maker "0.46.1"))
|
||||
;; Keywords: terminals wp
|
||||
;; URL: https://codeberg.org/bram85/kagi.el
|
||||
|
||||
|
|
Loading…
Reference in a new issue