Skip to content

Instantly share code, notes, and snippets.

@andiogenes
Last active August 28, 2025 03:46
Show Gist options
  • Select an option

  • Save andiogenes/42566301f4ac0175ede15cc6a0758f12 to your computer and use it in GitHub Desktop.

Select an option

Save andiogenes/42566301f4ac0175ede15cc6a0758f12 to your computer and use it in GitHub Desktop.
Start terminal emulator in current directory.
(defun term-emulator-here ()
"Start terminal emulator in current directory."
(interactive)
(let* ((term-emulator "alacritty")
(display-buffer-alist '(("\\*Async Shell Command\\*.*" display-buffer-no-window)))
(command term-emulator))
(async-shell-command command)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment