emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-present key bindings for Logitech R400 handheld presenter
@ 2015-03-30 14:06 Bernd Haug
  0 siblings, 0 replies; only message in thread
From: Bernd Haug @ 2015-03-30 14:06 UTC (permalink / raw)
  To: emacs-orgmode

I made myself a .emacs snippet with some bindings for using a Logitech
R400 presenter with org-present; maybe some of you can use this, too.

Minor questions noted below.

(defun my-on-org-mode ()
    (local-set-key (kbd "<f5>") 'org-present))

(defun my-on-org-present ()
    (local-set-key (kbd "<next>") 'org-present-next)
    (local-set-key (kbd "<prior>") 'org-present-prev)
    (local-set-key (kbd "<escape>") 'org-present-quit)
    (local-set-key (kbd ".") 'org-present-beginning))

(defun my-on-org-present-quit ()
    (local-unset-key (kbd "<next>"))
    (local-unset-key (kbd "<prior>"))
    (local-unset-key (kbd "<escape>"))
    (local-unset-key (kbd ".")))

(add-hook 'org-mode-hook 'my-on-org-mode)
(add-hook 'org-present-mode-hook 'my-on-org-present)
(add-hook 'org-present-mode-quit-hook 'my-on-org-present-quit)

1) The R400 just sends <f5> and <escape> alternatingly on the
start/stop presentation button. If you get it in a mixed up state so
that it toggles the wrong way around, just turn it off (on its side)
and on again. First stroke will always be "<f5>".

2) Originally I wanted to provide toggling read only using the last
key (lower right on the presenter, "temporarily blank"). Didn't work
This way:

(defun my-org-present-ro ()
  (local-set-key (kbd ".") 'my-org-present-rw)

(defun my-org-present-rw ()
  (local-set-key (kbd ".") 'my-org-present-ro)

; + calling my-org-present-ro instead of org-present-read-only in

For me, no issue practically speaking, since I pretty much always want
R/O anyway, but out of curiousity – what was I doing wrong?

Cheers, Bernd
Senior Software Engineer

Xaidat GmbH
Wickenburggasse 5
8010 Graz
Austria / Europe

web: http://www.xaidat.com/
phone:  +43-676-845023-706
email:   bernd.haug@xaidat.com

FN 384295s, LG ZRS Graz
UID-Nr. ATU67414611

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-30 14:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-30 14:06 org-present key bindings for Logitech R400 handheld presenter Bernd Haug

Code repositories for project(s) associated with this public inbox


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).