all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Calling function as if it had a C-u prefix
@ 2015-02-27 21:24 Tory S. Anderson
  2015-02-27 21:34 ` Drew Adams
  0 siblings, 1 reply; 6+ messages in thread
From: Tory S. Anderson @ 2015-02-27 21:24 UTC (permalink / raw)
  To: Emacs Help List

I'm playing around with hydra and am trying to bind a key to do the equivalent of `C-u org-clock-in`. I've tried following a related question on SO[1] but it doesn't seem to be working. Can anyone tell me where I'm off? 

--8<---------------cut here---------------start------------->8---
(global-set-key
 (kbd "C-c o")
 (defhydra hydra-org-time-management (:color blue)
   "Org"
   ("w" (let ((current-prefix-arg 4)) (org-clock-in)) "clock-in")))
--8<---------------cut here---------------end--------------->8---

Footnotes: 
[1] http://stackoverflow.com/questions/12827887/emacs-universal-argument-c-u-in-a-function




^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <mailman.961.1425072293.31049.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2015-02-27 22:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-27 21:24 Calling function as if it had a C-u prefix Tory S. Anderson
2015-02-27 21:34 ` Drew Adams
2015-02-27 21:44   ` Michael Heerdegen
2015-02-27 21:54     ` Tory S. Anderson
2015-02-27 22:09       ` Michael Heerdegen
     [not found] <mailman.961.1425072293.31049.help-gnu-emacs@gnu.org>
2015-02-27 21:51 ` 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.