From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diego Zamboni Subject: Re: customizing Org for legibility Date: Sat, 1 Feb 2020 21:36:19 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000026ed83059d89a57a" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47506) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixzVK-0006Oh-QN for emacs-orgmode@gnu.org; Sat, 01 Feb 2020 15:36:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixzVJ-0007Ac-7C for emacs-orgmode@gnu.org; Sat, 01 Feb 2020 15:36:34 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:46806) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ixzVI-00078o-QJ for emacs-orgmode@gnu.org; Sat, 01 Feb 2020 15:36:33 -0500 Received: by mail-wr1-x42f.google.com with SMTP id z7so12746082wrl.13 for ; Sat, 01 Feb 2020 12:36:31 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Samuel Wales Cc: Texas Cyberthal , "emacs-orgmode@gnu.org" --00000000000026ed83059d89a57a Content-Type: text/plain; charset="UTF-8" Hi Samuel, > i get the sense spacemacs has brought a lot of new users to emacs. i > don't use it but i have comments on your interesting and welcome > beauty tips. > This is definitely the case. I also don't use Spacemacs, but know a few people who got started thanks to it. I even have a friend who was a devoted vim user, and now swears by Spacemacs, particularly thanks to org-mode and magit :) this is really impressive. does it have a fill column? > Yes, there is (I don't use it): https://github.com/joostkremers/visual-fill-column i would be over the moon if you could make headers in the agenda > variable pitch. not only would it look better and be consistent with > the outline, but it would conserve space. > I think you can configure most faces as you wish. For this, I have found the key "C-u C-x =" (which run what-cursor-position with the DETAILED argument enabled) very useful - among other things, it shows the face which is applied at the point under the cursor. Based on that, you can know which face you need to customize. For example, when running it on an agenda header line, I see the following: There are text properties here: day 737456 face org-agenda-date-today By customizing this face to inherit from "variable-pitch", I was able to make those lines display in variable pitch font. also, i would remove the second column, which seems not to do anything. > > also, i removed colons from some columns in the agenda and think it > looks better. also i aligned all items. also, i made bare active > tses use a leader. also i made everything more compact except > categories which i widened. also, i removed [xd.] in leaders. > I would be interested to learn how to make these customizations. I have only recently been getting into agenda mode, so I have not customized much yet, curious what the brackets mean in > ("PROPOSAL" . "orange") > ("[PROPOSAL]" . "orange") > Nothing special - only that I sometimes use TAG in my headers, and others I use [TAG], depending on how I think it looks better at the time :) This way it gets colorized correctly no matter what. what does reformatting a buffer change? > I guess you are referring to the zz/org-reformat-buffer in my config? I got this from the mailing list, although I can't remember who posted it (sorry to the author! there goes my intention to always attribute things). It basically redoes all the spacing and indentation in the buffer. I run it every once in a while to uniformize things. could tags be fixed to stay at a column by counting pixels? > I have not found a way to make that happen. The misalignment was bothering me, so in the end this is what I do: - In =variable-pitch= mode, the default right-alignment for headline tags doesn't work, and results in the tags being misaligned (as it uses character positions to do the alignment). This setting positions the tags right after the last character of the headline, so at least they are more consistent. #+begin_src emacs-lisp :tangle no :noweb-ref org-mode-custom-vars (org-tags-column 0) #+end_src > thank you for the tips. > Glad you found them useful! Cheers, --Diego --00000000000026ed83059d89a57a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Samuel,
=C2=A0
=
i get the sense spacemacs= has brought a lot of new users to emacs.=C2=A0 i
don't use it but i have comments on your interesting and welcome
beauty tips.

This is definitely the cas= e. I also don't use Spacemacs, but know a few people who got started th= anks to it. I even have a friend who was a devoted=C2=A0vim user, and now s= wears by Spacemacs, particularly thanks to org-mode and magit :)
=
this is really impressive.=C2=A0 does it have a fill column?=C2=A0


i would be over the moon if you could make headers in the agenda
variable pitch.=C2=A0 not only would it look better and be consistent with<= br> the outline, but it would conserve space.

I think you can configure most faces as you wish. For this, I have found= the key "C-u C-x =3D" (which run what-cursor-position with the D= ETAILED argument enabled) very useful - among other things, it shows the fa= ce which is applied at the point under the cursor. Based on that, you can k= now which face you need to customize. For example, when running it on an ag= enda header line, I see the following:

There = are text properties here:
=C2=A0 day=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 737456
=C2=A0 face=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0org-agenda-date-today

By customizing this face to inherit from &quo= t;variable-pitch", I was able to make those lines display in variable = pitch font.

also, i would remove the second column, which seems not to do anything.

also, i removed colons from some columns in the agenda and think it
looks better.=C2=A0 also i aligned all items.=C2=A0 also, i made bare activ= e
tses use a leader.=C2=A0 also i made everything more compact except
categories which i widened.=C2=A0 also, i removed [xd.] in leaders.

I would be interested to learn how to make the= se customizations. I have only recently been getting into agenda mode, so I= have not customized much yet,

curious what the brackets mean in
=C2=A0 =C2=A0("PROPOSAL"=C2=A0 =C2=A0 =C2=A0. "orange")=
=C2=A0 =C2=A0("[PROPOSAL]"=C2=A0 =C2=A0. "orange")
<= /blockquote>

Nothing special - only that I sometimes use= TAG in my headers, and others I use [TAG], depending on how I think it loo= ks better at the time :) This way it gets colorized correctly no matter wha= t.

what does reformatting a buffer change?

I guess you are referring to the=C2=A0zz/org-reformat-buffer in my config?= I got this from the mailing list, although I can't remember who posted= it (sorry to the author! there goes my intention to always attribute thing= s). It basically redoes all the spacing and indentation in the buffer. I ru= n it every once in a while to uniformize things.

could tags be fixed to stay at a column by counting pixels?

I have not found a way to make that happen. The misali= gnment was bothering me, so in the end this is what I do:

- In =3Dvariable-pitch=3D mode, the default right-alignment for hea= dline tags doesn't work, and results in the tags being misaligned (as i= t uses character positions to do the alignment). This setting positions the= tags right after the last character of the headline, so at least they are = more consistent.

=C2=A0 #+begin_src emacs-lisp :ta= ngle no :noweb-ref org-mode-custom-vars
=C2=A0 =C2=A0 (org-tags-c= olumn 0)
=C2=A0 #+end_src
=C2=A0
thank you for the tips.

Glad you found = them useful!

Cheers,
--Diego
<= br>
--00000000000026ed83059d89a57a--