all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marius Hofert <marius.hofert@math.ethz.ch>
To: "Peter Dyballa" <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Printing questions concerning lpr-switches and printer-name
Date: Thu, 23 May 2013 16:53:17 +0200	[thread overview]
Message-ID: <871u8xvjc2.fsf@math.ethz.ch> (raw)
In-Reply-To: <42C53119-AE69-40B6-8455-EE0296231DAB@Web.DE>


Peter Dyballa writes:

> Am 22.05.2013 um 23:11 schrieb Marius Hofert:
>
>> An 'ido' completion of available printers would also be
>> great. Theoretically that should be possible, but I rather have to learn
>> elisp first...
>
> With f1…fn you select one of the n printers you have (maybe there
> exists a clear relation between the printer's type number and the n of
> the function key). So you bind a simple variable setting function (for
> printer-name) to a key press event.

How?

I looked around (e.g., here
http://www.masteringemacs.org/articles/2011/02/08/mastering-key-bindings-emacs/),
but couldn't find a solution to this problem. But then I'm no expert
here, so I might have overlooked it.

>
>
> With one modifier key down, for example Control, while you press one
> of the function keys now two things happen: you set printer n active
> and you also select particular lpr-switches – if needed.
>
> With two modifier keys down, for example Control + Shift, while you
> press one of the function keys now three things happen: you set
> printer n active and you also select particular lpr-switches for it
> and you choose an lpr-command with enscript, a2ps, or whatever.
>

this indeed sounds like a nice approach.

Cheers,

Marius

>
> This should not be too complicated. With printing set-up that way you
> can simply print a file (or more?) from dired with P.
>
> --
> Mit friedvollen Grüßen
>
>   Pete
>
> Atheism is a non prophet organisation.





  reply	other threads:[~2013-05-23 14:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-22 19:21 Printing questions concerning lpr-switches and printer-name Marius Hofert
2013-05-22 20:04 ` Peter Dyballa
2013-05-22 21:11   ` Marius Hofert
2013-05-22 22:52     ` Peter Dyballa
2013-05-23 14:53       ` Marius Hofert [this message]
2013-05-23 16:14         ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871u8xvjc2.fsf@math.ethz.ch \
    --to=marius.hofert@math.ethz.ch \
    --cc=Peter_Dyballa@Web.DE \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.