Ghibranalj / man-posframe.el

View man pages on a popup frame using posframe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

man-posframe.el

View man pages on a popup frame using posframe

screenshot

Usage

(call-interactively 'man-posframe-show)
;; or
(man-posframe-show "3 printf")

Installation

Using straight

(use-package man-posframe
  :straight (:type git :host github :repo "Ghibranalj/man-posframe.el"
             :files ("*.el") :branch "master")
  :ensure t
  :custom
  (man-posframe-width  100)
  (man-posframe-height  30))

Doom emacs

in packages.el

(package! man-posframe
  :recipe ( :type git :host github :repo "Ghibranalj/man-posframe.el"
                  :files ("*.el") :branch "master"))

in config.el

(use-package! man-posframe
  :custom
  (man-posframe-width  100)
  (man-posframe-height  30))

default keymap

(define-key map (kbd "q") 'man-posframe-close)
(define-key map (kbd "j") 'man-posframe-scroll-down)
(define-key map (kbd "k") 'man-posframe-scroll-up)
(define-key map (kbd "<escape>") 'man-posframe-close)

About

View man pages on a popup frame using posframe

License:MIT License


Languages

Language:Emacs Lisp 100.0%