From efcf32a67610986b32974a66a21d5de53770375c Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Tue, 9 Oct 2018 23:22:42 -0400 Subject: [PATCH] added prompt to choose a printer --- conf.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/conf.org b/conf.org index b3a4d23..4e1fc00 100644 --- a/conf.org +++ b/conf.org @@ -1740,6 +1740,16 @@ set as a text property for further sorting" ;;(require 'ox-taskjuggler) #+END_SRC * tools +** printing +For some reason there is no default way to get a "print prompt." Instead one needs to either install some third-party helper or make a function like this. +#+BEGIN_SRC emacs-lisp +(defun nd/helm-set-printer-name () + "Set the printer name helm-completion to select printer." + (interactive) + (let ((pl (or helm-ff-printer-list (helm-ff-find-printers)))) + (if pl + (setq printer-name (helm-comp-read "Printer: " pl))))) +#+END_SRC ** magit #+BEGIN_SRC emacs-lisp (use-package magit