From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: turning line mode on/off with defun not working Date: Sat, 07 Dec 2013 00:16:48 +0100 Message-ID: <87haalr2me.fsf@nl106-137-194.student.uu.se> References: <87iov1vnd2.fsf@nl106-137-194.student.uu.se> <87ppp93bnv.fsf@nl106-137-194.student.uu.se> <87lhzxodu5.fsf@nl106-137-194.student.uu.se> <8738m5sj39.fsf@nl106-137-194.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1386373702 1559 80.91.229.3 (6 Dec 2013 23:48:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Dec 2013 23:48:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 07 00:48:28 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 1Vp58G-0004qS-GZ for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Dec 2013 00:48:28 +0100 Original-Received: from localhost ([::1]:33910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vp58G-0003mk-5y for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Dec 2013 18:48:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vp4eC-0006VJ-IF for help-gnu-emacs@gnu.org; Fri, 06 Dec 2013 18:17:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vp4e6-0000Vz-P3 for help-gnu-emacs@gnu.org; Fri, 06 Dec 2013 18:17:24 -0500 Original-Received: from velox.its.uu.se ([130.238.7.74]:54662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vp4e6-0000Ve-D2 for help-gnu-emacs@gnu.org; Fri, 06 Dec 2013 18:17:18 -0500 X-Virus-Scanned: amavisd-new at uu.se X-DKIM: Sendmail DKIM Filter v2.8.3 velox.its.uu.se 4825036C52 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=uu.se; s=centralsmtp; t=1386371833; i=@uu.se; bh=DDxxiaf2Dn9OBt0eZRJRunyFlGLg7DyUcQ9Z4TTqLfc=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=WTi0wKdO46knPkY4JhOd/qsHFFhOt+QMASBbHdSm74vOnL+rG0mFJJR997mkDEG36 XJ51scs2mSnvSfWraeEmsrujJ+kFRJK9nI7zKnQPm2jQ//MZvvBRnGUmM9nINgV3CZ FRSuZfNaHnUM22d1C1gTmL7BzVy46bVZpBXHbgy0= Original-Received: from nl106-137-194.student.uu.se.student.uu.se (nl106-137-41.student.uu.se [130.243.137.41]) by velox.its.uu.se (Postfix) with ESMTP id 4825036C52 for ; Sat, 7 Dec 2013 00:17:13 +0100 (CET) In-Reply-To: (Wes James's message of "Fri, 6 Dec 2013 16:05:06 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 130.238.7.74 X-Mailman-Approved-At: Fri, 06 Dec 2013 18:48:19 -0500 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:94863 Archived-At: Wes James writes: > (global-linum-mode) So there is a third way to do it. But like I said, I don't like the idea of having it global. If you want it global, I guess you could put that line in your .emacs (just the line) and be done with it. > (defun name ()...) or (defun name()...) Both works but I like the whitespace there. Because that is actually an empty list (or nil), and not a place where you put parameters (like it is in C) - or, it is both in Lisp. Try it yourself with nil instead of the empty parenthesis pair. (Then, obviously you need the whitespace.) -- Emanuel Berg, programmer-for-rent. CV, projects, etc at uXu underground experts united: http://user.it.uu.se/~embe8573