I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.2 KiB

  1. #+TITLE: VTerm
  2. #+AUTHOR: Christopher James Hayward
  3. #+EMAIL: chris@chrishayward.xyz
  4. #+PROPERTY: header-args:emacs-lisp :tangle vterm.el :comments org
  5. #+PROPERTY: header-args :results silent :eval no-export :comments org
  6. #+OPTIONS: num:nil toc:nil todo:nil tasks:nil tags:nil
  7. #+OPTIONS: skip:nil author:nil email:nil creator:nil timestamp:nil
  8. VTerm is an implementation of libvterm for Emacs.
  9. * Interactive Terminal
  10. I noticed ~eshell~ wasn't enough when needing interactivity from the terminal. Going through [[https://chrishayward.xyz/notes/thinking-in-cpp/][Thinking in C++]] for one of my courses required lots of terminal interaction which ~eshell~ was unable to handle. Since ~vterm~ is based on ~libvterm~, an external C library, it's blazing fast and fully interactive. Add a few configurations:
  11. + Always compile the module
  12. + Install the required packages on *Debian/Ubuntu*
  13. #+begin_src emacs-lisp
  14. (use-package vterm
  15. :commands (vterm)
  16. :custom (vterm-always-compile-module t))
  17. #+end_src
  18. * Shortcuts
  19. Open a new ~vterm~ buffer with =SPC v=:
  20. #+begin_src emacs-lisp
  21. (dotfiles/leader
  22. "v" '(vterm-other-window :which-key "VTerm"))
  23. #+end_src
  24. * Footnotes