From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: myglc2 Newsgroups: gmane.emacs.help Subject: Re: make ps-print-buffer-with-faces all bold Date: Sun, 24 Jul 2016 11:49:03 -0400 Message-ID: References: <86invvxk1v.fsf@student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1469375527 14341 80.91.229.3 (24 Jul 2016 15:52:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Jul 2016 15:52:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 24 17:51:51 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bRLgz-0003Dv-0G for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Jul 2016 17:51:49 +0200 Original-Received: from localhost ([::1]:56474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRLgy-0004Ny-4z for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Jul 2016 11:51:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRLgS-0004Nh-Os for help-gnu-emacs@gnu.org; Sun, 24 Jul 2016 11:51:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bRLgO-0003Xv-J2 for help-gnu-emacs@gnu.org; Sun, 24 Jul 2016 11:51:15 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:45870) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bRLgO-0003Xr-C2 for help-gnu-emacs@gnu.org; Sun, 24 Jul 2016 11:51:12 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1bRLgM-0002in-Kr for help-gnu-emacs@gnu.org; Sun, 24 Jul 2016 17:51:10 +0200 Original-Received: from c-73-167-118-254.hsd1.ma.comcast.net ([73.167.118.254]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Jul 2016 17:51:10 +0200 Original-Received: from myglc2 by c-73-167-118-254.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Jul 2016 17:51:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 45 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-73-167-118-254.hsd1.ma.comcast.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:jkxM9SRajfRZymMSwKL++epuRbU= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110922 Archived-At: Emanuel Berg writes: > myglc2 wrote: > >> I alway want emacs printout in color but find >> the 'normal' faces frustratingly unreadable, >> especially in low contrast colors. So... Here >> is how to make everything bold in >> ps-print-buffer-with-faces, etc. >> >> ;; ps-print in all bold fonts >> (ps-extend-face-list >> (mapcar (function (lambda (x) (list x >> (face-attribute x :foreground) >> (face-attribute x :background) >> 'bold))) >> (face-list)) 'MERGE) > > Cool, but perhaps you should change the "low > contrast colors" instead? To print I use a light theme and I want color to match the screen. Dark themes are generally unreadable printed this way. Something clever needs to be done with the color if you want to print dark themes. > Or do they look good on the screen, only not so when printed? On my printer normal fonts are ~ unreadable. > In what context should one use the code? I.e., > do you run it once or every time you print? emacs init file. > And: I don't think you need `function' before > `lambda'. elisp noobie ;-) > Last, aren't there other attributes than > foreground and background? Perhaps you can find > a function that returns the whole thing, and > then just set it to bold? The ps-print.el public interface requires this custom structure.