[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Add after-save-hook to a mode
From: |
Florian Lindner |
Subject: |
Add after-save-hook to a mode |
Date: |
Mon, 28 May 2012 00:00:54 +0200 |
Hello,
I want to org-mobile-push executed everytime a file in org-mode is
saved. I tried that:
(add-hook 'org-mode-hook
(add-hook 'after-save-hook
(lambda ()
(org-mobile-push)
)))
This seems to war, but the hook is executed regardless of the mode the
file is in. How can I restrict it to org-mode only?
Thanks,
Florian
- Add after-save-hook to a mode,
Florian Lindner <=