Advertisement
mark-naylor-1701

bury buffer and kill window

Jan 4th, 2025
342
0
4 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.24 KB | None | 0 0
  1. (defun bury-buffer-close-window ()
  2.   "Bury the buffer, then close the window if it is the last one in
  3. the frame."
  4.   (interactive)
  5.   (bury-buffer)
  6.   (safe-delete-window))
  7.  
  8.  
  9. (define-key global-map (kbd "C-c b c") #'bury-buffer-close-window)
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement