Skip to content

Commit

Permalink
use-package ibuffer config, add casual-ibuffer
Browse files Browse the repository at this point in the history
ibuffer was not required, so ibuffer-mode-map was void in init.el
  • Loading branch information
regob committed Oct 7, 2024
1 parent 260497b commit d154f53
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
6 changes: 1 addition & 5 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
7 changes: 7 additions & 0 deletions lisp/init-help.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 16 additions & 0 deletions lisp/init-ibuffer.el
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d154f53

Please sign in to comment.