From ee383b2b2fa542b64d131700de0d48b08370ca78 Mon Sep 17 00:00:00 2001 From: Ravi R Kiran Date: Mon, 17 May 2021 22:03:48 -0500 Subject: kitty availability not known until frame hooks are run diff --git a/lisp/ravi-init-helm.el b/lisp/ravi-init-helm.el index 1d78359..69e91bb 100644 --- a/lisp/ravi-init-helm.el +++ b/lisp/ravi-init-helm.el @@ -52,8 +52,11 @@ :config (progn (unbind-key "C-x c") ; default helm prefix key - (bind-key (xterm-kitty-make-binding-sequence "" ?\t) 'helm-execute-persistent-action helm-map) - (bind-key (xterm-kitty-make-binding-sequence "H-" ?\t 'hyper) 'helm-select-action helm-map) + (defun ravi/set-up-helm-tab-binding () + "Bind tab key: needs to occur after initial frame has been created"[B] + (bind-key (xterm-kitty-make-binding-sequence "" ?\t) 'helm-execute-persistent-action helm-map) + (bind-key (xterm-kitty-make-binding-sequence "H-" ?\t 'hyper) 'helm-select-action helm-map)) + (add-hook 'emacs-startup-hook #'ravi/set-up-helm-tab-binding) (use-package helm-posframe :if window-system -- cgit v0.10.1