2021-02-21 02:59:11 +00:00
|
|
|
;; -*- lexical-binding: t; -*-
|
|
|
|
|
2021-02-20 11:40:03 +00:00
|
|
|
;; Buffer-related configuration
|
|
|
|
(defun kill-other-buffers ()
|
|
|
|
"Kill all other buffers."
|
|
|
|
(interactive)
|
|
|
|
(mapc 'kill-buffer (delq (current-buffer) (buffer-list))))
|
|
|
|
|
|
|
|
(leader-def-key
|
|
|
|
"b" '(nil :which-key "buffer")
|
|
|
|
"bb" #'switch-to-buffer
|
|
|
|
"bd" #'kill-buffer
|
|
|
|
"bm" #'kill-other-buffers
|
|
|
|
"br" #'rename-buffer)
|
|
|
|
|
|
|
|
(provide 'init-buffers)
|