I would like to insert a custom timestamp in emacs orgmode . I want to insert only the current time (no date!) In this form: [HH: MM] by pressing C-c -. I am completely new to lisp and could not figure out how to do this. My starting point for my ~/.emacs-file is like this:
(defun org-my-custom-timestamp ()
(interactive)
( :SOME_CODE: )
)
(define-key global-map "\C-c-" 'org-my-custom-timestamp)
Now, it's just a definition of my custom function called org-my-custom-timestamp, "interactivity" and label assignment. However, I have tried different things for :SOME_CODE:without any success.
What can be set in a function to make it work as described?
Do any of the experienced emacs users even consider this a practical exercise, or is there a smarter way to do this? Perhaps org-mode-internal?
source
share