From 80b0c943e9ece8a663c0cd2f58ac1338714aa6ef Mon Sep 17 00:00:00 2001 From: Jakub Date: Fri, 26 Sep 2025 22:44:41 +0800 Subject: [PATCH] Terminal doesnt work on android --- userland/terminal.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/userland/terminal.el b/userland/terminal.el index 37d950e..596e4ef 100644 --- a/userland/terminal.el +++ b/userland/terminal.el @@ -30,7 +30,7 @@ :group 'theurgy :group 'theurgy-compat) -(when (or (not (equal system-type 'windows-nt)) theurgy-enable-vterm-windows) +(when (or (equal system-type 'gnu/linux) theurgy-enable-vterm-windows) (use-package vterm :ensure t)) @@ -76,7 +76,8 @@ (define-key global-map (kbd "C-") 'theurgy-main-shell) (global-set-key (kbd "M-RET") 'theurgy-bottom-shell) -(define-key vterm-mode-map (kbd "M-RET") 'theurgy-bottom-shell) +(when (fboundp 'vterm) + (define-key vterm-mode-map (kbd "M-RET") 'theurgy-bottom-shell)) (add-to-list 'display-buffer-alist '("\\*vterm\\*\\|\\*shell\\*"