unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / 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

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 --
     [not found] <mailman.961.1425072293.31049.help-gnu-emacs@gnu.org>
2015-02-27 21:51 ` Calling function as if it had a C-u prefix Emanuel Berg
2015-02-27 21:24 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).