daily pastebin goal
79%
SHARE
TWEET

Untitled

a guest Jan 12th, 2018 39 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defun allow-toggle-timestamp-p ()
  2.   (cond
  3.    ((eq last-command 'org-time-stamp) t)
  4.    ((eq last-command 'org-toggle-timestamp-type) t)
  5.    nil))
  6.  
  7. (define-key org-mode-map "!"
  8.   `(menu-item "" org-toggle-timestamp-type
  9.               :filter ,(lambda (cmd) (if (allow-toggle-timestamp-p) cmd))))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top