From 07e6e66c0f7357c99fce3cc2c8b4a002e09aeea5 Mon Sep 17 00:00:00 2001 From: Bram Schoenmakers Date: Thu, 11 Jan 2024 20:44:51 +0100 Subject: [PATCH] Bump shell-maker dependency This version has protection for accidental buffer closure built-in. No need to customize it in your own init file. --- README.org | 14 -------------- kagi.el | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/README.org b/README.org index 44e5598..847490a 100644 --- a/README.org +++ b/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 diff --git a/kagi.el b/kagi.el index 1450b72..1518ce4 100644 --- a/kagi.el +++ b/kagi.el @@ -6,7 +6,7 @@ ;; Maintainer: Bram Schoenmakers ;; 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