diff --git a/init.el b/init.el index ae50e3a..8be5f7c 100644 --- a/init.el +++ b/init.el @@ -90,11 +90,6 @@ ;; turn off auto fill (remove-hook 'text-mode-hook 'turn-on-auto-fill) - -;; ibuffer -(global-set-key (kbd "C-x C-b") #'ibuffer) -(keymap-unset ibuffer-mode-map "M-o" t) - (use-package avy :config (global-set-key (kbd "C-'") 'avy-goto-char-2) @@ -178,6 +173,7 @@ (require 'init-flycheck nil nil) (require 'init-dired nil nil) +(require 'init-ibuffer nil nil) (require 'init-help nil nil) (require 'init-consult nil nil) (require 'init-vc nil nil) diff --git a/lisp/init-help.el b/lisp/init-help.el index b80943b..f3f2dc7 100644 --- a/lisp/init-help.el +++ b/lisp/init-help.el @@ -39,6 +39,13 @@ calc-alg-map ("C-c t" . 'casual-calc-tmenu))) +(use-package casual-ibuffer + :ensure (:source "MELPA") + :bind (:map + ibuffer-mode-map + ("C-c t" . 'casual-ibuffer-tmenu)) + ) + (provide 'init-help) ;;; init-help.el ends here diff --git a/lisp/init-ibuffer.el b/lisp/init-ibuffer.el new file mode 100644 index 0000000..1a3c79c --- /dev/null +++ b/lisp/init-ibuffer.el @@ -0,0 +1,16 @@ +;;; init-ibuffer.el --- Builtin interactive buffer mode -*- lexical-binding: t -*- +;;; Commentary: +;;; Code: + +(use-package ibuffer + :ensure nil + :config + (global-set-key (kbd "C-x C-b") #'ibuffer) + ;; collision with switch-buffer + (keymap-unset ibuffer-mode-map "M-o" t) + ) + + +(provide 'init-ibuffer) + +;;; init-ibuffer.el ends here