Function: org-ctags-open-file
org-ctags-open-file is an interactive and byte-compiled function
defined in org-ctags.el.gz.
Signature
(org-ctags-open-file NAME &optional TITLE)
Documentation
Visit or create a file called NAME.org, and insert a new topic.
The new topic will be titled NAME (or TITLE if supplied).
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-ctags.el.gz
;;; Internal functions =======================================================
(defun org-ctags-open-file (name &optional title)
"Visit or create a file called `NAME.org', and insert a new topic.
The new topic will be titled NAME (or TITLE if supplied)."
(interactive "sFile name: ")
(condition-case v
(progn
(org-open-file name t)
(message "Opened file OK")
(goto-char (point-max))
(insert (org-ctags-string-search-and-replace
"%t" (capitalize (or title name))
org-ctags-new-topic-template))
(message "Inserted new file text OK")
(org-mode-restart))
(error (error "Error %S in org-ctags-open-file" v))))