From e854230d506a43e42c551c5c918cfe44fcd63d70 Mon Sep 17 00:00:00 2001 From: MadMaurice Date: Tue, 18 Sep 2018 13:09:26 +0200 Subject: [PATCH] emacs: let emacs automagically find the right terminal emulator. For now I added termite and urxvt. --- emacs/.emacs.d/init.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 6ed6e47..6a4b6b8 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -68,6 +68,11 @@ (height . 40) )) +;; Select correct terminal application +(setq terminal-emulator + (find-if #'executable-find + (list "termite" "urxvt"))) + ;; Use cperl-mode instead of perl-mode (defalias 'perl-mode 'cperl-mode) @@ -467,7 +472,10 @@ ;; Quickly open external terminal (use-package terminal-here :ensure t - :bind ("C-x t" . terminal-here-launch)) + :bind ("C-x t" . terminal-here-launch) + :config + (setq terminal-here-terminal-command + (list terminal-emulator))) ;; swiper (use-package swiper