From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adam Newsgroups: gmane.emacs.help Subject: help create function alias Date: Mon, 20 Sep 2010 22:43:54 +1200 Organization: Ihug Ltd Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: dough.gmane.org 1291947521 14120 80.91.229.12 (10 Dec 2010 02:18:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 02:18:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 10 03:18:37 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQsZA-0000M9-5c for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 03:18:36 +0100 Original-Received: from localhost ([127.0.0.1]:60939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQsZ9-00048Q-Eo for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 21:18:35 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!lust.ihug.co.nz!ihug.co.nz!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: 203.173.200.86 Original-X-Trace: lust.ihug.co.nz 1284978728 11649 203.173.200.86 (20 Sep 2010 10:32:08 GMT) Original-X-Complaints-To: abuse@ihug.co.nz Original-NNTP-Posting-Date: Mon, 20 Sep 2010 10:32:08 +0000 (UTC) User-Agent: KNode/0.9.2 Original-Xref: usenet.stanford.edu gnu.emacs.help:181374 X-Mailman-Approved-At: Thu, 09 Dec 2010 20:08:59 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77190 Archived-At: I use (insert-date) often, but rather than a hotkey I'd prefer M-x id or ALT-x id So in .emacs I included the following, which I thought I had seen running earlier, but may indeed be problematic. Basically its an (id) alias of the (insert-date) function. Can anyone help or suggest where I've gone wrong ? (defun id () "insert date" (interactive "P") (insert-date t))