summaryrefslogtreecommitdiff
path: root/modes
diff options
context:
space:
mode:
authorcondy <condy0919@gmail.com>2024-06-05 22:28:55 +0800
committercondy <condy0919@gmail.com>2024-06-05 22:28:55 +0800
commita64a0a9487ab32569208f720ea2748dc790e71ef (patch)
tree35cfad3b1b8227fffcaa238269aeb7f4ea376ce0 /modes
parentacc38ea2d991c9bd1380223ac5ec5cdcee2c8cd0 (diff)
elisp-refs, emms, pdf, xwidget: Use kill-current-buffer
kill-this-buffer says > This command can be reliably invoked only from the menu bar, > otherwise it could decide to silently do nothing.
Diffstat (limited to 'modes')
-rw-r--r--modes/elisp-refs/evil-collection-elisp-refs.el4
-rw-r--r--modes/emms/evil-collection-emms.el4
-rw-r--r--modes/pdf/evil-collection-pdf.el6
-rw-r--r--modes/xwidget/evil-collection-xwidget.el4
4 files changed, 9 insertions, 9 deletions
diff --git a/modes/elisp-refs/evil-collection-elisp-refs.el b/modes/elisp-refs/evil-collection-elisp-refs.el
index 92339c7..c146c04 100644
--- a/modes/elisp-refs/evil-collection-elisp-refs.el
+++ b/modes/elisp-refs/evil-collection-elisp-refs.el
@@ -1,6 +1,6 @@
;;; evil-collection-elisp-refs.el --- Evil bindings for Elisp Refs -*- lexical-binding: t -*-
-;; Copyright (C) 2017 James Nguyen
+;; Copyright (C) 2017, 2024 James Nguyen
;; Author: James Nguyen <james@jojojames.com>
;; Maintainer: James Nguyen <james@jojojames.com>
@@ -46,7 +46,7 @@
(kbd "RET") 'elisp-refs-visit-match
;; quit
- "q" 'kill-this-buffer))
+ "q" 'kill-current-buffer))
(provide 'evil-collection-elisp-refs)
;;; evil-collection-elisp-refs.el ends here
diff --git a/modes/emms/evil-collection-emms.el b/modes/emms/evil-collection-emms.el
index be300ad..d4d7838 100644
--- a/modes/emms/evil-collection-emms.el
+++ b/modes/emms/evil-collection-emms.el
@@ -1,6 +1,6 @@
;;; evil-collection-emms.el --- Evil bindings for EMMS -*- lexical-binding: t -*-
-;; Copyright (C) 2017 Pierre Neidhardt
+;; Copyright (C) 2017, 2024 Pierre Neidhardt
;; Author: Pierre Neidhardt <mail@ambrevar.xyz>
;; Maintainer: James Nguyen <james@jojojames.com>
@@ -239,7 +239,7 @@ The return value is the yanked text."
"C" 'emms-metaplaylist-mode-new-buffer
"." 'emms-metaplaylist-mode-center-current
"D" 'emms-metaplaylist-mode-kill-buffer
- "q" 'kill-this-buffer)
+ "q" 'kill-current-buffer)
(evil-set-initial-state 'emms-stream-mode 'normal)
(evil-collection-define-key 'normal 'emms-stream-mode-map
diff --git a/modes/pdf/evil-collection-pdf.el b/modes/pdf/evil-collection-pdf.el
index e998695..22eff17 100644
--- a/modes/pdf/evil-collection-pdf.el
+++ b/modes/pdf/evil-collection-pdf.el
@@ -1,6 +1,6 @@
;;; evil-collection-pdf.el --- Evil bindings for pdf-tools -*- lexical-binding: t -*-
-;; Copyright (C) 2017 Pierre Neidhardt
+;; Copyright (C) 2017, 2024 Pierre Neidhardt
;; Author: Pierre Neidhardt <mail@ambrevar.xyz>
;; Maintainer: James Nguyen <james@jojojames.com>
@@ -195,8 +195,8 @@ instead, which is useless and counterintuitive."
;; quit
"q" 'quit-window
- "Q" 'kill-this-buffer
- "ZQ" 'kill-this-buffer
+ "Q" 'kill-current-buffer
+ "ZQ" 'kill-current-buffer
"ZZ" 'quit-window)
diff --git a/modes/xwidget/evil-collection-xwidget.el b/modes/xwidget/evil-collection-xwidget.el
index 2a12161..ab197f1 100644
--- a/modes/xwidget/evil-collection-xwidget.el
+++ b/modes/xwidget/evil-collection-xwidget.el
@@ -1,6 +1,6 @@
;;; evil-collection-xwidget.el --- Evil bindings for Xwidget -*- lexical-binding: t -*-
-;; Copyright (C) 2020, 2022 Ruslan Kamashev
+;; Copyright (C) 2020, 2022, 2024 Ruslan Kamashev
;; Author: Ruslan Kamashev <rynffoll@gmail.com>
;; Maintainer: James Nguyen <james@jojojames.com>
@@ -72,7 +72,7 @@ F is the name of function, N is the pixel height."
(setq evil-collection-xwidget-webkit-last-closed-tab-url
(xwidget-webkit-uri (xwidget-webkit-current-session)))
(let ((kill-buffer-query-functions nil))
- (kill-this-buffer)))
+ (kill-current-buffer)))
(defun evil-collection-xwidget-webkit-restore-last-closed-tab ()
"Restore last closed tab."