all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Fire defun by typing keyword
@ 2013-10-30  2:38 Emanuel Berg
  2013-10-30  3:05 ` Stefan Monnier
                   ` (2 more replies)
  0 siblings, 3 replies; 28+ messages in thread
From: Emanuel Berg @ 2013-10-30  2:38 UTC (permalink / raw)
  To: help-gnu-emacs

Is it possible to fire off a defun by typing a specific
keyword? Sort of like the way abbrev works?

For example, I have a defun like this

(defun date ()
  (interactive)
  (insert-shell-command "my_date") )

where "my_date" is a script to format output from
/bin/date.

Now, my idea is to hook it to a keyword, say "thedate".

Again, it would work just as abbrev, only instead of a
table lookup and replace, it would trigger a defun.

-- 
Emanuel Berg, programmer-for-rent. CV, projects, etc at uXu
underground experts united:  http://user.it.uu.se/~embe8573


^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2013-11-11 17:50 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-30  2:38 Fire defun by typing keyword Emanuel Berg
2013-10-30  3:05 ` Stefan Monnier
2013-10-30  3:23 ` Kevin Rodgers
     [not found] ` <mailman.4950.1383102623.10748.help-gnu-emacs@gnu.org>
2013-11-01 18:58   ` Emanuel Berg
2013-11-05  2:50   ` Emanuel Berg
2013-11-05 21:12     ` Kai Großjohann
     [not found]     ` <mailman.5372.1383685981.10748.help-gnu-emacs@gnu.org>
2013-11-05 22:38       ` Emanuel Berg
2013-11-06  3:37         ` Rustom Mody
2013-11-06 22:32           ` Emanuel Berg
2013-11-07  1:16             ` Rustom Mody
2013-11-07 12:07               ` Alan Schmitt
2013-11-07 14:31                 ` Peter Dyballa
2013-11-07 14:47                 ` Rustom Mody
2013-11-07 16:21                   ` Peter Dyballa
     [not found]                   ` <mailman.5498.1383841291.10748.help-gnu-emacs@gnu.org>
2013-11-07 16:31                     ` Rustom Mody
2013-11-07 19:49                       ` Emanuel Berg
2013-11-08  2:27                         ` Rustom Mody
2013-11-08  9:45                           ` Peter Dyballa
2013-11-09  1:14                           ` Emanuel Berg
2013-11-09 21:24                             ` John Bokma
2013-11-09 21:59                               ` Emanuel Berg
2013-11-09 22:14                               ` Emanuel Berg
2013-11-11 17:50                           ` Emanuel Berg
2013-11-08 12:14                   ` Alan Schmitt
     [not found]                 ` <mailman.5488.1383834710.10748.help-gnu-emacs@gnu.org>
2013-11-08 12:13                   ` Alan Schmitt
2013-11-08 12:30                     ` Peter Dyballa
2013-11-09 22:26         ` Kai Großjohann
     [not found]         ` <mailman.5668.1384036032.10748.help-gnu-emacs@gnu.org>
2013-11-09 23:45           ` Emanuel Berg

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.