From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Kai_Gro=DFjohann?= Newsgroups: gmane.emacs.help Subject: Re: Fire defun by typing keyword Date: Tue, 05 Nov 2013 22:12:35 +0100 Message-ID: <52795F43.2020906@gmx.net> References: <871u33mqj0.fsf@nl106-137-194.student.uu.se> <87zjpjmuhj.fsf@nl106-137-194.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1383685982 15940 80.91.229.3 (5 Nov 2013 21:13:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Nov 2013 21:13:02 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 05 22:13: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 1Vdnvu-0003SQ-2j for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Nov 2013 22:13:06 +0100 Original-Received: from localhost ([::1]:58521 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vdnvt-0002Lq-Ks for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Nov 2013 16:13:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdnvX-0002Ce-Uc for help-gnu-emacs@gnu.org; Tue, 05 Nov 2013 16:12:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdnvQ-0004jo-L1 for help-gnu-emacs@gnu.org; Tue, 05 Nov 2013 16:12:43 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:51100) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdnvQ-0004jf-Az for help-gnu-emacs@gnu.org; Tue, 05 Nov 2013 16:12:36 -0500 Original-Received: from marcie.lan ([188.100.170.200]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0M3iU5-1VvCDb2GVF-00rGkA for ; Tue, 05 Nov 2013 22:12:34 +0100 User-Agent: Postbox 3.0.8 (Macintosh/20130427) Original-Newsgroups: gmane.emacs.help In-Reply-To: <87zjpjmuhj.fsf@nl106-137-194.student.uu.se> X-Provags-ID: V03:K0:wObRVxWh0Oe7Pr8yQ+qMh4RCh2yGzYraa0WD+AjMmbU3lqEP+S7 aDcWHJOsuR4PjPxyGZqHqrT5yf2XVIlAdtB7v30bt7ySJ32fGFHNksICwx5tZLp8vL7oUdL FpKtmBskiMRQLbOqYoojH7v+5fhMHjEMGJ1YcP2izgL/K0EID2oD/VKfrFZsIZMJIBf8Hqx q1MicDUdhbsZNgGvvwpGA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.18 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:94357 Archived-At: Emanuel Berg wrote: > > But, apart from inserting the date, I don't know what to > do with this newfound input method. That's always the > case with my great ideas, I only find but a few use > cases for each... You could enter the appropriate greeting for the time of day: Good morning, Good afternoon, etc. for (int i=0; i<10; i++) { _ } You could create an abbrev that reads a type (int), a variable (i), an initial value (0), a final value (10), and then produces the above, where _ indicates the position of the cursor. You could create an abbrev that sends the mail your are writing :-) Just some thoughts. Kai