I am using my capslock key as a prefix key and have already set "capslock-v" to 'helm-show-kill-ring. This however does not work with copying outside code into emacs so now I want a set up as such:

capslock-v (wait 1 sec) 'helm-show-kill-ring


capslock-vv 'yank

Is it possible to do this? Here is the relevant portion of my .emacs

(setq w32-enable-caps-lock nil)

  ;; define a prefix keymap
  (define-prefix-command 'my-modes-key-map)

  (define-key my-modes-key-map (kbd "v") 'helm-show-kill-ring)  
  (key-chord-define my-modes-key-map (kbd "vv") 'yank) 


(global-set-key (kbd "<capslock>") my-modes-key-map)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.