From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: Re: a dark theme? Date: Thu, 17 Jul 2014 02:00:48 +0100 Message-ID: <87egxksssf.fsf@skimble.plus.com> References: <87a989f3io.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1405558884 26485 80.91.229.3 (17 Jul 2014 01:01:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jul 2014 01:01:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 17 03:01:19 2014 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 1X7a4T-000812-8l for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jul 2014 03:01:17 +0200 Original-Received: from localhost ([::1]:41840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7a4S-0006d8-TM for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Jul 2014 21:01:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7a4E-0006d2-IK for help-gnu-emacs@gnu.org; Wed, 16 Jul 2014 21:01:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7a4A-0002GL-5g for help-gnu-emacs@gnu.org; Wed, 16 Jul 2014 21:01:02 -0400 Original-Received: from avasout08.plus.net ([212.159.14.20]:58409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7a49-0002GB-Sy for help-gnu-emacs@gnu.org; Wed, 16 Jul 2014 21:00:58 -0400 Original-Received: from london ([46.208.100.255]) by avasout08 with smtp id TD0v1o0045Wd1Nu01D0w88; Thu, 17 Jul 2014 02:00:56 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=fOK33Pqe c=1 sm=1 tr=0 a=TF/aNDpRIwUUuheM/ANEIA==:117 a=TF/aNDpRIwUUuheM/ANEIA==:17 a=0Bzu9jTXAAAA:8 a=EGPZCNv1iLEA:10 a=ihvODaAuJD4A:10 a=EBOSESyhAAAA:8 a=MUnkXy62AAAA:8 a=LlzXLoV6AAAA:8 a=xtERp6CFAAAA:8 a=iI7HsYTVAAAA:8 a=Vd3jxLjwffoKkB2fyLUA:9 a=0INfl-prmW_gCVVh:21 a=x6R3OlJna1J6Rplf:21 a=QEXdDO2ut3YA:10 a=7frnbCNWaG0A:10 a=pemA7XLeca6h4Uhb9v4A:9 X-AUTH: skimble:2500 In-Reply-To: <87a989f3io.fsf@debian.uxu> (Emanuel Berg's message of "Wed, 16 Jul 2014 22:32:47 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 212.159.14.20 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98703 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Emanuel Berg writes: > Sharon Kimble writes: > >> I'm hoping that someone can advise me, I'm looking >> for a theme to use with emacs and gnus which has a >> dark background, but also allows me to read all the >> text in a gmail which currently appears as >> nearly-white on a slightly-grey background. > > "All the text in a gmail"? > > To get a default bright-on-dark "theme" (which I highly > recommend to reduce eye strain) simply evaluate this: > > (set-face-attribute 'default nil > :foreground "cyan" > :background "black" > :bold nil) > > Change "cyan" to whatever fits you the best. I use a > Linux VT/tty/"the console" and you probably use X. That > means I can't help you with the colors, but try > "green", "blue", etc. See if you can find something you > like; if not, dig deeper. Probably you don't won't bold > for ordinary text, save that option for faces that > highlight stuff (headers, keywords, and so on). > > If you run into some text that you don't like the color > of, use this defun to identify the face: > > (defun what-face (pos) > (interactive "d") > (let ((face (or (get-char-property (point) 'read-face-name) > (get-char-property (point) 'face)))) > (if face (message " Face: %s" face) > (message " No face at %d." pos) ))) Thanks for this Emanuel, I've doctored my init.el and put the above in it, at the end, which is where I always put temporary/testing code, unless it goes into my setup-testing.el. I then ran it when my mouse was on the problem text in a gmail, and this is what it found - =E2=95=AD=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82Face: ((:foreground #5e5e5e) (:foreground #5e5e5e) (:background #7= 27272)) =E2=95=B0=E2=94=80=E2=94=80=E2=94=80=E2=94=80 Perhaps I'm misunderstanding you, but how can I customise that? Its got no name or handle that I can hook on to! Sharon. > > Put it in an init file, for example ~/.emacs. Then > invoke it with `M-x what-face' with point at the face > you don't like the color of. This will show you what > face it is. Then do as above again, only substitute > 'default for the face you found. Note that several > modes/modules of Emacs uses the same faces. So if it > looks great with brown somewhere, it might not look as > great somewhere else, and of course, if you change it > again, the first place may look less good! In practice, > this is seldom or never a problem. If it is, it is > solvable but I never got to that. Just go for what > sticks out in a pleasant way, it should work > everywhere. Where applicable, put some thought into it: > with programming, the `font-lock-comment-face' > shouldn't be as bright and emphasized as > `font-lock-function-name-face' (because people > comment-out stuff, and read comments only as a > secondary measure, when they don't immediately > understand the code), what's more, perhaps red is a > natural color for `font-lock-warning-face', and so > on. But don't overthink it. Most important thing is it > should look clear, relaxed, and fun. Check out this > screenshot of a modest major-mode a once did. That's > how I like it. Obviously I didn't intellectualize every > singly color I put to use. It is still very pleasant to > work in such a mode - like a night club :) [1] > >> I've recently been using aalto-dark, aalto-light, >> adwaita, alect-black-alt, tsdh-dark and all have >> failed the gmail test. I'm currently using tango, >> which is the complete reverse of what I'm looking >> for. > > The problem with themes, which I didn't know existed > until this discussion by the way, is that you find one > mode, you like it to 80%, but not quite, so you look > for another, maybe you like that to 90%, and so > on. Instead of jumping between Emacs themes, Linux > distros, and so on, just put that time setting it up > the way you want it. Plain and simple. Time-consuming, > yes, but educational. Fun. And ultimately, much more > capable of getting not to 90% but (almost) all the way > (and those last percent missing not because some > perfect theme is eluding you, but because of your > current understanding and skills. Remember, > "Don't chase the dragon - become the dragon!" > > [1] http://user.it.uu.se/~embe8573/fps/fpscalc.png =2D-=20 A taste of linux =3D http://www.sharons.org.uk my git repo =3D https://bitbucket.org/boudiccas/dots TGmeds =3D http://www.tgmeds.org.uk Debian testing, fluxbox 1.3.5, emacs 24.3.92.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJTxyBBAAoJEDaBgBkK+INbXt8P/AqZAftrg30vhyl3OnH2WAoD rl7vSv0/WgCjp+p5ED4uBvommDUU5XKv58WmeKp0pGyCRv2Q/UKZ1Rw9nLTJytR3 LOLswLB4mUva3CAZt3Tf8Lq4Hg7fbpPillw7N5j9btHiia5v44/nu0C3OEKCzaP3 ctdKcj3xCDAqR4F428iwFfRJVGC7uwUPaYbVbi9TMfmReSxGRu5XKGwJWih+e4wD WSBDitwYT0MuZMuwuRIVcdcbq+ybs2qP5fxPrey/qmy7Geh14GZtIBlu0V2WcWPJ oWKfpFM8SNuPcY0BP/8mt++iFzFYEjAHj9h7jTscp3NoS5ArVRcKKIM/Xo4y/sCW obD2xF9FaMxanbcFCZ3CcDiS9kk5BSQtUj9YA/zrysqVMjQEKh2mgSUlKQTYfQt8 azr+ur5JowiMgRcqLukv7Kg0aZ+UtP+AOBnYx1uIJt0bh3s+PnoaO+65TcDb88d3 CqRAuPFE6ygYAxKrxWdQShTIBD2O3u8Y81yqIat7funpWDDvFLFHVYlRAMg6Dgjp 0gie0RGzHiiLF7CITKZPeQgZf0LJgh8B6htHZWD0BZEkhgSKdbKSJsaxO4jLEtcL WBRR6bznhITiuGgMvzLCp9zPAEQVmMKoYImYJi8s708Xn1g9MWQ4iW93GwOe3o5Z oLqLNzbvYg7/GdnUgXQy =RDiW -----END PGP SIGNATURE----- --=-=-=--