From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: jan Newsgroups: gmane.emacs.help Subject: Re: How can I turn on abbrev mode by default? Date: 18 Oct 2003 12:57:27 -0700 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <1066347864.4501.19.camel@syr-24-59-77-252.twcny.rr.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066445365 12570 80.91.224.253 (18 Oct 2003 02:49:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Oct 2003 02:49:25 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 18 04:49:23 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AAh9e-0002WO-00 for ; Sat, 18 Oct 2003 04:49:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AAh8C-0006CT-Vq for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Oct 2003 22:47:52 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AAh7s-00069X-HV for help-gnu-emacs@gnu.org; Fri, 17 Oct 2003 22:47:32 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AAh7L-0005lM-Q4 for help-gnu-emacs@gnu.org; Fri, 17 Oct 2003 22:47:31 -0400 Original-Received: from [210.50.30.52] (helo=smtp01.syd.iprimus.net.au) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AAh7L-0005hh-3S for help-gnu-emacs@gnu.org; Fri, 17 Oct 2003 22:46:59 -0400 Original-Received: from ABE (210.50.171.38) by smtp01.syd.iprimus.net.au (7.0.020) id 3F8B009E0019D500; Sat, 18 Oct 2003 12:46:56 +1000 Original-To: Dan Anderson In-Reply-To: <1066347864.4501.19.camel@syr-24-59-77-252.twcny.rr.com> Original-Lines: 28 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:13320 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13320 Dan Anderson writes: > > Go to the customization for cperl-mode-hook by doing: > > > > M-x customize-option RET cperl-mode-hook > > > > Then click on INS and type into the field: > > > > abbrev-mode > > When I do that it tells me "No match". CPerlmode is installed in my > .emacs.d/lisp directory. Could this be the problem? Another approach is to just add this to your .emacs file. (add-hook 'hack-local-variables-hook #'(lambda () (when (eq major-mode 'cperl-mode) (abbrev-mode 1)))) But why not turn it on all the time. Abbrevs are mode sensitive anyway. It's even simpler too. (add-hook 'hack-local-variables-hook #'(lambda () (abbrev-mode 1))) -- jan