a guest Jan 12th, 2018 39 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- (defun allow-toggle-timestamp-p ()
- ((eq last-command 'org-time-stamp) t)
- ((eq last-command 'org-toggle-timestamp-type) t)
- (define-key org-mode-map "!"
- `(menu-item "" org-toggle-timestamp-type
- :filter ,(lambda (cmd) (if (allow-toggle-timestamp-p) cmd))))
RAW Paste Data