added prompt to choose a printer

This commit is contained in:
ndwarshuis 2018-10-09 23:22:42 -04:00
parent 0f361ca231
commit efcf32a676
1 changed files with 10 additions and 0 deletions

View File

@ -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