This package provides a set of extensions to transient and interactive menus to common UNIX tools and applications.
transient-extras-lp
provides a menu based on transient to call the CUPS
printing program lp
on the current buffer or a selected file.
transient-extras-lp
can be enabled for dired
and pdf-tools buffers as follows
(make sure that transient-extras.el
is in load-path
)
(require 'transient-extras-lp)
(with-eval-after-load 'dired
(define-key
dired-mode-map
(kbd "C-c C-p") #'transient-extras-lp-menu))
(with-eval-after-load 'pdf-tools
(define-key
pdf-misc-minor-mode-map
(kbd "C-c C-p") #'transient-extras-lp-menu))
Or simply call transient-extras-lp-menu
to print the current buffer or the selected
files in dired
. If a buffer has an associated file, the file is printed,
otherwise the buffer content is sent to lp
.
By pressing d
, you can input the name of the printer. The command lpstat
-a
is used to get a list of installed and network printers. If you have
async-completing-read installed then the command will be run asynchronously.
transient-extras-a2ps
provides a menu to call the a2ps printing
program on the current buffer or selected file.
transient-extras-a2ps
may be enabled for dired or other buffers
using the following code (assuming transient-extras.el
is in the
load-path
):
(require 'transient-extras-a2ps)
(global-set-key (kbd "C-c C-p") #'transient-extras-a2ps)
Note that this binding will be shadowed in places where it is specifically bound in a local map.
All additional configuration and description of options may be found in the a2ps info manual.