summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRavi R Kiran <aine.marina@gmail.com>2021-05-18 03:03:48 (GMT)
committerRavi R Kiran <aine.marina@gmail.com>2021-05-18 03:03:48 (GMT)
commitee383b2b2fa542b64d131700de0d48b08370ca78 (patch)
tree1115b90fca42484124f433898819f7fdca68244e
parent588b676a0d6e4cacd30810239e6924128c102198 (diff)
downloaddotemacs-ee383b2b2fa542b64d131700de0d48b08370ca78.zip
dotemacs-ee383b2b2fa542b64d131700de0d48b08370ca78.tar.gz
dotemacs-ee383b2b2fa542b64d131700de0d48b08370ca78.tar.bz2
kitty availability not known until frame hooks are run
-rw-r--r--lisp/ravi-init-helm.el7
1 files changed, 5 insertions, 2 deletions
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 "<tab>" ?\t) 'helm-execute-persistent-action helm-map)
- (bind-key (xterm-kitty-make-binding-sequence "H-<tab>" ?\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 "<tab>" ?\t) 'helm-execute-persistent-action helm-map)
+ (bind-key (xterm-kitty-make-binding-sequence "H-<tab>" ?\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