added prompt to choose a printer
This commit is contained in:
parent
0f361ca231
commit
efcf32a676
10
conf.org
10
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
|
||||
|
|
Loading…
Reference in New Issue