Do you want all of your planner files to have a TXT extension so that
they’ll be searched by tools such as Google Desktop or Apple Spotlight?
Use the ‘rename’ tool to add .txt extensions to all of your files, or
use the following code to rename all of your planner files from a
running Planner setup:
(defun my-rename-planner-files ()
"Rename all my planner files to .txt if they don't have that extension yet."
(unless (string-match "\\.txt$" (cdr file))
(rename-file (cdr file) (concat (cdr file) ".txt"))
(message "%s" (cdr file))))
Then add this to your ~/.emacs before you load Planner:
(setq emacs-wiki-ignored-extensions-regexp "\\.txt")
(defadvice emacs-wiki-find-file (around extension activate)
"Open the Emacs Wiki page WIKI by name.
If COMMAND is non-nil, it is the function used to visit the file.
If DIRECTORY is non-nil, it is the directory in which the Wiki
page will be created if it does not already exist."
(setq wiki (cons wiki
(cdr (assoc wiki (emacs-wiki-file-alist))))))
;; At this point, `wiki' is (GIVEN-PAGE FOUND-FILE).
(if (cdr wiki)
(let ((buffer (funcall (or command 'find-file) (cdr wiki))))
(if (= (prefix-numeric-value current-prefix-arg) 16)
(set (make-variable-buffer-local 'emacs-wiki-directories)
(cons (file-name-directory (cdr wiki))
(set (make-variable-buffer-local 'emacs-wiki-file-alist)
(let* ((dirname (or directory
(filename (expand-file-name (car wiki) dirname)))
(unless (file-exists-p dirname)
(make-directory dirname t))
(funcall (or command 'find-file) (concat filename ".txt")))))
ÃƒÂ¦Ã‚Â–Ã‚Â°ÃƒÂ£Ã‚ÂÃ‚Â—ÃƒÂ£Ã‚ÂÃ‚Â„ÃƒÂ£Ã‚ÂƒÃ‚Â‘ÃƒÂ£Ã‚Â‚Ã‚Â½ÃƒÂ£Ã‚Â‚Ã‚Â³ÃƒÂ£Ã‚ÂƒÃ‚Â³ÃƒÂ£Ã‚Â‚Ã‚Â’ÃƒÂ¨Ã‚Â²Ã‚Â·ÃƒÂ£Ã‚ÂÃ‚Â†ÃƒÂ£Ã‚ÂÃ‚Â¤ÃƒÂ£Ã‚Â‚Ã‚Â‚ÃƒÂ£Ã‚Â‚Ã‚ÂŠÃƒÂ£Ã‚ÂÃ‚Â§ÃƒÂ©Ã‚Â‡Ã‚Â‘ÃƒÂ£Ã‚Â‚Ã‚Â’ÃƒÂ¦Ã‚ÂºÃ‚ÂœÃƒÂ£Ã‚Â‚Ã‚ÂÃƒÂ£Ã‚ÂÃ‚Â¦ÃƒÂ£Ã‚ÂÃ‚Â„ÃƒÂ£Ã‚Â‚Ã‚Â‹ÃƒÂ£Ã‚Â‚Ã‚Â“ÃƒÂ£Ã‚ÂÃ‚Â ÃƒÂ£Ã‚Â€Ã‚Â‚ I am saving money in order to buy a new personal computer.
On Technorati: planner, emacs, code