-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
4 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]> | ||
;; Maintainer: James Nguyen <[email protected]> | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]> | ||
;; Maintainer: James Nguyen <[email protected]> | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]> | ||
;; Maintainer: James Nguyen <[email protected]> | ||
|
@@ -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) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]> | ||
;; Maintainer: James Nguyen <[email protected]> | ||
|
@@ -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." | ||
|