1234567891011121314151617181920212223 |
- ; org-mode
- (require 'org)
- (add-hook 'org-mode-hook
- (lambda ()
- (define-key org-mode-map [(meta left)] nil)
- (define-key org-mode-map [(meta right)] nil)
- (define-key org-mode-map [(meta down)] nil)
- (define-key org-mode-map [(meta up)] nil))
- 'append)
- (defun myorg-update-parent-cookie ()
- (when (equal major-mode 'org-mode)
- (save-excursion
- (ignore-errors
- (org-back-to-heading)
- (org-update-parent-todo-statistics)))))
- (defadvice org-kill-line (after fix-cookies activate)
- (myorg-update-parent-cookie))
- (defadvice kill-whole-line (after fix-cookies activate)
- (myorg-update-parent-cookie))
|