From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Subject: Re: text-mode-abbrev-table default? Date: Wed, 28 Oct 2009 17:11:37 +0100 Message-ID: <4AE86D39.6040603@easy-emacs.de> References: <4AE769DC.1080604@online.de> <842ECF42-DA84-4EDA-801C-71F1F80B1695@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3ABv-0001MA-5W for emacs-orgmode@gnu.org; Wed, 28 Oct 2009 11:12:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3ABq-0001Fg-3s for emacs-orgmode@gnu.org; Wed, 28 Oct 2009 11:12:02 -0400 Received: from [199.232.76.173] (port=33581 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3ABp-0001FP-SW for emacs-orgmode@gnu.org; Wed, 28 Oct 2009 11:11:57 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:60118) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3ABp-0000nb-Ec for emacs-orgmode@gnu.org; Wed, 28 Oct 2009 11:11:57 -0400 In-Reply-To: <842ECF42-DA84-4EDA-801C-71F1F80B1695@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode Mailinglist Carsten Dominik wrote: > > On Oct 27, 2009, at 10:45 PM, Andreas Roehler wrote: > >> >> Hi, >> >> with abbrev-mode, org-mode made his own >> (org-mode-abbrev-table) - empty, which was >> unconvenient, as I declared a lot of abbrevs in >> text-mode already. >> >> Solved it by >> >> (add-hook 'org-mode-hook '(lambda () (setq local-abbrev-table >> text-mode-abbrev-table))) >> >> However, as org-mode is a text-mode, why not use >> `text-mode-abbrev-table' by default? > > Because if I do tis by default, someone if going to want > to have a separate table.... :-) > > You solution is good - a nice snippet for a FAQ, maybe? > > - Carsten > > > Don't know. Just one remark still in this matter: Some modes as text-mode, org-mode are useful for non-programmers too. However, emacs' didactic already is somehow backward bothering people with keys instead mentioning mnemonic function-names. It's important to reflect how much a newbie/non-programmer may learn. IMHO the use of `customize' with its different types - string, regexp, boolean - its enough already. Requiring knowledge and use of things like `add-hook' is simply too much - emacs will lose this people. So what about introducing a customizable var saying `use-text-mode-abbrev-table'? If set to `t', use it. As said - suggest it as default. Cheers Andreas