helpers.el 466 B

1234567891011121314
  1. (defun display-full-buffer-path ()
  2. (interactive)
  3. "Little helper for showing full file path in minibuffer"
  4. (message (buffer-file-name)))
  5. ;;; See great post here:
  6. ;;; https://www.manueluberti.eu/emacs/2018/02/17/magit-bury-buffer/
  7. (defun mu-magit-kill-buffers ()
  8. "Restore window configuration and kill all Magit buffers."
  9. (interactive)
  10. (let ((buffers (magit-mode-get-buffers)))
  11. (magit-restore-window-configuration)
  12. (mapc #'kill-buffer buffers)))