From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Capitalisation and good taste ? Date: Sat, 21 Jan 2012 07:16:36 -0500 Message-ID: <87aa5h45ej.fsf@norang.ca> References: <87k4509rc1.fsf@iro.umontreal.ca> <87aa5wcitv.fsf@norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoZsG-0007zE-RQ for emacs-orgmode@gnu.org; Sat, 21 Jan 2012 07:16:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RoZsF-0003CX-Kx for emacs-orgmode@gnu.org; Sat, 21 Jan 2012 07:16:48 -0500 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:59188) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoZsF-0003C1-JB for emacs-orgmode@gnu.org; Sat, 21 Jan 2012 07:16:47 -0500 In-Reply-To: (Leo Alekseyev's message of "Fri, 20 Jan 2012 22:00:24 -0600") 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.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Leo Alekseyev Cc: emacs-orgmode@gnu.org Leo Alekseyev writes: >> A long time ago all capitals was the only way these keywords were >> supported. =C2=A0Since then they have become case insensitive and I use = all >> lowercase for most of my keywords now (#+begin_src:, #+begin_example: >> etc) >> >> With fontification these stand out enough now and the capitalization can >> be removed. > > So I'm kind of late to this party, but like Bernt, I've been favoring > lowercase #+ keywords; I believe it looks cleaner and easier on the > eyes. However, if functions that autogenerate keywords (e.g. > #+results from code blocks and easy templates) default to a particular > case, forcing a different case as a user becomes unappealing > (consistency trumps aesthetics). > > If we want to keep org truly keyword-case-agnostic, then there should > be a user-customized variable that easy templates and org-babel result > blocks would follow. I added the following to my .emacs to keep lowercase. (setq org-babel-results-keyword "results") (setq org-structure-template-alist (quote (("s" "#+begin_src ?\n\n#+end_src" "\n\n") ("e" "#+begin_example\n?\n#+end_example" "\n?\n") ("q" "#+begin_quote\n?\n#+end_quote" "\n?\n") ("v" "#+begin_verse\n?\n#+end_verse" "\n?\n/verse>") ("c" "#+begin_center\n?\n#+end_center" "
\n?\n/center>") ("l" "#+begin_latex\n?\n#+end_latex" "\n?= \n") ("L" "#+latex: " "?") ("h" "#+begin_html\n?\n#+end_html" "\n?\n<= /literal>") ("H" "#+html: " "?") ("a" "#+begin_ascii\n?\n#+end_ascii") ("A" "#+ascii: ") ("i" "#+index: ?" "#+index: ?") ("I" "#+include %file ?" "")))) -Bernt