From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wes James Newsgroups: gmane.emacs.help Subject: turning line mode on/off with defun not working Date: Thu, 05 Dec 2013 17:28:34 +0000 (GMT) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1386264542 18060 80.91.229.3 (5 Dec 2013 17:29:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Dec 2013 17:29:02 +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 Dec 05 18:29:06 2013 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 1Vocja-0005kw-Fc for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Dec 2013 18:29:06 +0100 Original-Received: from localhost ([::1]:54874 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vocja-0001dL-31 for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Dec 2013 12:29:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VocjG-0001We-0x for help-gnu-emacs@gnu.org; Thu, 05 Dec 2013 12:28:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vocj7-00053A-BP for help-gnu-emacs@gnu.org; Thu, 05 Dec 2013 12:28:45 -0500 Original-Received: from nk11p00mm-asmtp003.mac.com ([17.158.161.2]:40699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vocj7-00052Y-3I for help-gnu-emacs@gnu.org; Thu, 05 Dec 2013 12:28:37 -0500 Original-Received: from nk11p00mm-spool001.mac.com ([17.158.161.66]) by nk11p00mm-asmtp003.mac.com (Oracle Communications Messaging Server 7u4-27.08(7.0.4.27.7) 64bit (built Aug 22 2013)) with ESMTP id <0MXC00I55GJM8530@nk11p00mm-asmtp003.mac.com> for help-gnu-emacs@gnu.org; Thu, 05 Dec 2013 17:28:34 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.72,1.0.14,0.0.0000 definitions=2013-12-05_06:2013-12-05, 2013-12-05, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1308280000 definitions=main-1312050099 Original-Received: from localhost ([17.158.236.222]) by nk11p00mm-spool001.mac.com (Oracle Communications Messaging Server 7u4-27.01(7.0.4.27.0) 64bit (built Aug 30 2012)) with ESMTP id <0MXC00HVYGJMGH60@nk11p00mm-spool001.mac.com> for help-gnu-emacs@gnu.org; Thu, 05 Dec 2013 17:28:34 +0000 (GMT) X-Mailer: iCloud MailClient1U43 MailServer1U25.15099 X-Originating-IP: [129.123.87.45] X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 17.158.161.2 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:94844 Archived-At: I have these lines in my .emacs, but they don't work. =A0Why?=0A=0A(defun = lnon()=0A=A0 "Turn line numbers on"=0A=A0 (global-linum-mode t)=0A)=0A=0A(= defun lnoff()=0A=A0 "Turn line numbers off"=0A=A0 (global-linum-mode 0)=0A= )=0A=0AI press alt-x and then type in lnon or lnoff but it says [No Match]= =0A=0AI have this and it works:=0A=0A; define function to shutdown emacs s= erver instance =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0=0A(defun ked (= )=0A=A0 "Save buffers, Quit, and Shutdown (kill) server"=0A=A0 (interactiv= e)=0A=A0 =A0(save-some-buffers)=0A=A0 (kill-emacs)=0A)=0A=0AWhat is the di= fference?=0A=0AThanks,=0A=0A-wes=