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