On 2014-12-16 15:46, Kyle Meyer <k...@kyleam.com> writes: > Alan Schmitt <alan.schm...@polytechnique.org> wrote: >> On 2014-12-15 09:31, Samuel Loury <konubi...@gmail.com> writes: > [...] >> This is how I did it: >> >> #+begin_src emacs-lisp >> (defun as/org-agenda-refile-noupdate (&optional goto rfloc) >> "Call `org-agenda-refile' with arguments GOTO, RFLOC, and t." >> (interactive "P") >> (org-agenda-refile goto rfloc t)) >> >> (add-hook 'org-agenda-mode-hook >> (lambda () >> (local-set-key (kbd "C-c C-w") 'as/org-agenda-refile-noupdate))) >> #+end_src > > You could also use > > (define-key org-agenda-mode-map [remap org-agenda-refile] > 'as/org-agenda-refile-noupdate)
Thank you for this suggestion, it is most useful. Alan -- OpenPGP Key ID : 040D0A3B4ED2E5C7
signature.asc
Description: PGP signature