emacs: add kill-all-buffers function
This commit is contained in:
parent
5e6dc79fef
commit
aba03c9808
1 changed files with 6 additions and 0 deletions
|
@ -36,6 +36,11 @@
|
|||
(dolist (mode hidden-minor-modes)
|
||||
(let ((lighter (cdr (assoc mode minor-mode-alist))))
|
||||
(when lighter (setcar lighter "")))))
|
||||
(defun kill-all-buffers ()
|
||||
"Kill all buffers."
|
||||
(interactive)
|
||||
(eglot-shutdown-all)
|
||||
(mapc #'kill-buffer (buffer-list)))
|
||||
(defun reindent-buffer ()
|
||||
"Reindent the current buffer."
|
||||
(interactive)
|
||||
|
@ -63,6 +68,7 @@ value `italic'."
|
|||
(add-hook 'after-change-major-mode-hook #'hide-minor-modes)
|
||||
|
||||
;; other key binds
|
||||
(global-set-key (kbd "C-c e b k") 'kill-all-buffers)
|
||||
(global-set-key (kbd "C-c e i") 'edit-init-file)
|
||||
(global-set-key (kbd "C-c e r") 'reindent-buffer)
|
||||
(global-set-key (kbd "C-h w") 'dictionary-search)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue