[BEH] How to display info help inside a box

That ASCII-art box is great for many things, specially when used to describe a function, variable or key. The necesary package is boxquote. And to have all its power at your fingertips, a snippet for your .emacs

(require 'boxquote)

(global-set-key (kbd "C-c b y")   'boxquote-yank)
(global-set-key (kbd "C-c b r")   'boxquote-region)         
(global-set-key (kbd "C-c b u")   'boxquote-unbox-region)
(global-set-key (kbd "C-c b t")   'boxquote-title)          
(global-set-key (kbd "C-c b i")   'boxquote-insert-file) 
(global-set-key (kbd "C-c b k")   'boxquote-kill) 
(global-set-key (kbd "C-c b s")   'boxquote-shell-command)

(global-set-key (kbd "C-c b b")   'boxquote-buffer)
(global-set-key (kbd "C-c b p")   'boxquote-paragraph) 
(global-set-key (kbd "C-c b n")   'boxquote-narrow-to-boxquote)

(global-set-key (kbd "C-c b w")   'boxquote-where-is) 
(global-set-key (kbd "C-c b d f") 'boxquote-describe-function)
(global-set-key (kbd "C-c b d k") 'boxquote-describe-key)
(global-set-key (kbd "C-c b d v") 'boxquote-describe-variable)

Comments are currently closed.