private/hlissner: fix :killall :killm and :killo ex commands
This commit is contained in:
parent
33afe47647
commit
568a7478b1
2 changed files with 17 additions and 3 deletions
|
@ -43,9 +43,9 @@
|
|||
;; Dealing with buffers
|
||||
(ex! "clean[up]" 'doom/cleanup-buffers) ; Clean up old/unreal buffers
|
||||
(ex! "k[ill]" 'doom/kill-real-buffer) ; Kill current buffer
|
||||
(ex! "k[ill]all" 'doom:kill-all-buffers) ; Kill buffers (bang = in project)
|
||||
(ex! "k[ill]m" 'doom:kill-matching-buffers) ; kill buffers by regexp
|
||||
(ex! "k[ill]o" 'doom:kill-other-buffers) ; kill other buffers
|
||||
(ex! "k[ill]all" '+hlissner:kill-all-buffers) ; Kill buffers (bang = in project)
|
||||
(ex! "k[ill]m" '+hlissner:kill-matching-buffers) ; kill buffers by regexp
|
||||
(ex! "k[ill]o" 'doom/kill-other-buffers) ; kill other buffers
|
||||
(ex! "l[ast]" 'doom/popup-last-buffer) ; pop up last popup
|
||||
(ex! "m[sg]" 'view-echo-area-messages) ; open *messages* in popup
|
||||
(ex! "pop[up]" 'doom/popup) ; open current buffer in popup
|
||||
|
|
|
@ -20,3 +20,17 @@
|
|||
(interactive "<f>")
|
||||
(cd input))
|
||||
|
||||
;;;###autoload (autoload '+hlissner:kill-all-buffers "private/hlissner/autoload/evil" nil t)
|
||||
(evil-define-command +hlissner:kill-all-buffers (&optional bang)
|
||||
"Kill all buffers. If BANG, kill current session too."
|
||||
(interactive "<!>")
|
||||
(if bang
|
||||
(+workspace/kill-session)
|
||||
(doom/kill-all-buffers)))
|
||||
|
||||
;;;###autoload (autoload '+hlissner:kill-matching-buffers "private/hlissner/autoload/evil" nil t)
|
||||
(evil-define-command +hlissner:kill-matching-buffers (&optional bang pattern)
|
||||
"Kill all buffers matching PATTERN regexp. If BANG, only match project
|
||||
buffers."
|
||||
(interactive "<a>")
|
||||
(doom/kill-matching-buffers pattern bang))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue