Skip to content

Instantly share code, notes, and snippets.

@junyi-hou
junyi-hou / posframe-control.el
Last active June 5, 2019 04:53
posframe wrapper that allow keyboard control
;;; posframe-control.el -- supporting keyboard control for posframe -*- lexical-binding: t; -*-
;; Package-requires: ((emacs "26") (posframe "0.3.0") (dash "2.16.0"))
;;; Commentary:
;; This snippet provides keyboard interaction support for posframe
;; (https://github.com/tumashu/posframe). This is achieved by 1.) assigning a
;; name to the posframe-frame via specifying `override-parameters'; 2.) defining
;; command using `with-selected-frame' to operate on the posframe.