mgcsysinfcat / which-key-posframe

Let emacs-which-key use posframe to show its popup.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

Let emacs-which-key use posframe to show its popup.

License:GNU General Public License v3.0


Languages

Language:Emacs Lisp 100.0%