mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Refactor doom/cleanup-session & corresponding evil command
This commit is contained in:
@ -2,11 +2,20 @@
|
||||
|
||||
(defalias 'ex! 'evil-ex-define-cmd)
|
||||
|
||||
;;; Commands defined elsewhere
|
||||
(evil-define-command doom:cleanup-session (&optional bang)
|
||||
(interactive "<!>")
|
||||
(doom/cleanup-session bang))
|
||||
|
||||
|
||||
;;
|
||||
;; Commands
|
||||
;;
|
||||
|
||||
;;; Commands defined elsewhere
|
||||
;;(ex! "al[ign]" #'+evil:align)
|
||||
;;(ex! "g[lobal]" #'+evil:global)
|
||||
|
||||
;;; Custom commands
|
||||
;;; Custom commands
|
||||
;; Editing
|
||||
(ex! "@" #'+evil:macro-on-all-lines) ; TODO Test me
|
||||
(ex! "al[ign]" #'+evil:align)
|
||||
@ -39,7 +48,7 @@
|
||||
(ex! "gblame" #'magit-blame)
|
||||
(ex! "grevert" #'git-gutter:revert-hunk)
|
||||
;; Dealing with buffers
|
||||
(ex! "clean[up]" #'doom/cleanup-session)
|
||||
(ex! "clean[up]" #'doom:cleanup-session)
|
||||
(ex! "k[ill]" #'doom/kill-this-buffer)
|
||||
(ex! "k[ill]all" #'+default:kill-all-buffers)
|
||||
(ex! "k[ill]m" #'+default:kill-matching-buffers)
|
||||
|
Reference in New Issue
Block a user