Skip to content
Let emacs-which-key use posframe to show its popup.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
screenshot initial commit Mar 27, 2019
LICENSE Create LICENSE Mar 27, 2019
README.org add license badge Apr 22, 2019
which-key-posframe.el pass optional arguments to face-attribute, which is a suggestion from @… Apr 27, 2019

README.org

Which-key-posframe

https://melpa.org/packages/which-key-posframe-badge.svg https://stable.melpa.org/packages/which-key-posframe-badge.svg https://img.shields.io/badge/License-GPLv3-blue.svg

Introduction

This package is a emacs-which-key extension, which use posframe to show which-key popup. This package is inspired by ivy-posframe. ./screenshot/which-key-posframe-screenshot.gif

Table of Contents

Install

MELPA

After setting up MELPA as a repository, use M-x package-install which-key-posframe or your preferred method.

Use package

(use-package
  :load-path "path/to/which-key-posframe.el"
  :config
  (which-key-posframe-mode))

Customization

You can customize the appearance of the posframe, the options are derived directly from posframe.

Position of Posframe

You can change the position of posframe by modify the value of which-key-posframe-poshandler, feasible values are limited by posframe. You can use either one of followings.

(setq which-key-posframe-poshandler 'posframe-poshandler-frame-center)
(setq which-key-posframe-poshandler 'posframe-poshandler-frame-top-center)
(setq which-key-posframe-poshandler 'posframe-poshandler-frame-top-left-corner)
(setq which-key-posframe-poshandler 'posframe-poshandler-frame-top-right-corner)
(setq which-key-posframe-poshandler 'posframe-poshandler-frame-bottom-left-corner)
(setq which-key-posframe-poshandler 'posframe-poshandler-frame-bottom-right-corner)
(setq which-key-posframe-poshandler 'posframe-poshandler-window-center)
(setq which-key-posframe-poshandler 'posframe-poshandler-window-top-left-corner)
(setq which-key-posframe-poshandler 'posframe-poshandler-window-top-right-corner)
(setq which-key-posframe-poshandler 'posframe-poshandler-window-bottom-left-corner)
(setq which-key-posframe-poshandler 'posframe-poshandler-window-bottom-right-corner)
(setq which-key-posframe-poshandler 'posframe-poshandler-point-top-left-corner)
(setq which-key-posframe-poshandler 'posframe-poshandler-point-bottom-left-corner)
You can’t perform that action at this time.