GithubHelp home page GithubHelp logo

lp-transient's Introduction

transient-extras - Extensions and application menus based on transient

Introduction

This package provides a set of extensions to transient and interactive menus to common UNIX tools and applications.

transient-extras-lp

transient-extras-lp.png

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.

Additional Configuration

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

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.

Additional Configuration

All additional configuration and description of options may be found in the a2ps info manual.

lp-transient's People

Contributors

haji-ali avatar swflint avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.