emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org Remember hooks?
@ 2008-11-18 17:18 Tim O'Callaghan
  2008-11-18 19:43 ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: Tim O'Callaghan @ 2008-11-18 17:18 UTC (permalink / raw)
  To: org-mode

Hi,

I want to change/add to the remember mode key-map but i'm having some
problems reverting them.
That's because the remember buffer is actually org-mode in disguise,
the keys stay mapped after the remember mode buffer is closed.

Is it possible to localise the org-remember mappings, or supply a post
org-remember hook?

The function that causes trouble:
(defun toc:remap-remember-keys ()
  (define-key (current-local-map) [(control x) (control s)] 'remember-finalize)
  (define-key (current-local-map) [(meta k)]                'remember-destroy))
(add-hook 'remember-mode-hook 'toc:remap-remember-keys 'append)


Cheers,

Tim.

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

end of thread, other threads:[~2008-11-19 13:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-18 17:18 Org Remember hooks? Tim O'Callaghan
2008-11-18 19:43 ` Carsten Dominik
2008-11-19 13:19   ` Bernt Hansen

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

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

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