1
0
Fork 0

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:
Bram Schoenmakers 2024-01-11 20:44:51 +01:00
parent 2d3e55c615
commit 07e6e66c0f
2 changed files with 1 additions and 15 deletions

View file

@ -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

View file

@ -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