From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: print from emacs Date: Thu, 22 May 2008 10:39:45 +0200 Message-ID: <87wslmpwa6.fsf@thievol.homelinux.org> References: <48350F0C.5080601@telenet.be> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211445386 17354 80.91.229.12 (22 May 2008 08:36:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 May 2008 08:36:26 +0000 (UTC) Cc: emacs list To: Alain Muls Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 22 10:37:02 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jz6IG-0002vV-RS for geh-help-gnu-emacs@m.gmane.org; Thu, 22 May 2008 10:37:01 +0200 Original-Received: from localhost ([127.0.0.1]:33223 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jz6HW-0003i1-C5 for geh-help-gnu-emacs@m.gmane.org; Thu, 22 May 2008 04:36:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jz6H1-0003dM-Od for help-gnu-emacs@gnu.org; Thu, 22 May 2008 04:35:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jz6Gy-0003bQ-Rz for help-gnu-emacs@gnu.org; Thu, 22 May 2008 04:35:42 -0400 Original-Received: from [199.232.76.173] (port=38639 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jz6Gy-0003bB-MH for help-gnu-emacs@gnu.org; Thu, 22 May 2008 04:35:40 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.173]:57769) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jz6Gy-0001R8-Ck for help-gnu-emacs@gnu.org; Thu, 22 May 2008 04:35:40 -0400 Original-Received: by ug-out-1314.google.com with SMTP id l31so408376ugc.48 for ; Thu, 22 May 2008 01:35:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=JPKG6EN5F+1dncZJ53pS2IhGmX37hPsh9qBKOHr/N6s=; b=vxyPos5p0runsoXULXDJ9XuH5digGUPJe0j4zFw/DS6lUWc06ZKb/yvWXOMVMb1mMiXu0AefEvMaSnLBuu9BJ6Knhddlf0m2FaLy0Ex01U8d5MTFuqPR6TMbpQVP870WXic8WiKZzhEBoZghmshJw2PCU1o7xQ15vpEEWsoJ+Cw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=HeKHnxrroelqe3uMGx60GluOeUDWVZ7FCGk6+X7CF6hAqpWdrrgCR1R3XMG/hZ1uxQIotRD1hHbfpo9AXIRzlUF6yMFyiiBY45d6VSAsTwwtOnQa4Pez0O8FaRRL63S37m+wRoEvNVVyV6aOSp7t+VQYYdqvNMTpxE/A+zzJHVY= Original-Received: by 10.125.154.9 with SMTP id g9mr8601026mko.40.1211445335332; Thu, 22 May 2008 01:35:35 -0700 (PDT) Original-Received: from thievol.homelinux.org ( [79.85.211.100]) by mx.google.com with ESMTPS id g28sm5973458fkg.1.2008.05.22.01.35.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 22 May 2008 01:35:34 -0700 (PDT) In-Reply-To: <48350F0C.5080601@telenet.be> (Alain Muls's message of "Thu, 22 May 2008 08:13:32 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54224 Archived-At: Alain Muls writes: > Hi emacs-users > > I develop c++ using emacs, but I cannot set up to print the source > code from emacs using 2 logical pages per physical page and with 98 > chars per line and using special fonts for the code. I also do not > know how to specify which printer to use. My system uses the cupsys > system for printing. > > > > mvg/Alain > Hello, you can use an external program that you launch from emacs, i use gtklp, here is my config:(install first gtklp) ,---- | (setq lpr-command "gtklp") | (setq-default ps-print-header nil) | (set-variable 'lpr-switches '("-Pepson")) | (global-set-key (kbd " p b") 'ps-print-buffer) | (global-set-key (kbd " p r") 'ps-print-region) `---- (i use an epson printer, you have to change that may be) -- A + Thierry Pub key: http://pgp.mit.edu