1
0
Fork 0

fix(emacs): add keybind for finding terminals

This commit is contained in:
Lucas Sta Maria 2025-02-08 19:28:07 -05:00
parent 2d1e04a4df
commit 2bb192de80
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47
2 changed files with 22 additions and 1 deletions

View file

@ -25,6 +25,14 @@
(filepath (or filepath (read-file-name "filename: "))))
(url-copy-file url filepath 1)))
(defun buffer-major-mode (buffer-name)
"Get the major mode of the buffer with the given name."
(buffer-local-value 'major-mode (get-buffer buffer-name)))
(defun buffer-vterm-p (buffer-name)
"Is the buffer with the given name a vterm buffer?"
(eq 'vterm-mode (buffer-major-mode buffer-name)))
(provide 'priime-utils)
;;; priime-utils.el ends here