emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emacs-wiki-discuss] another planner-annotation function...


From: Jody Klymak
Subject: [emacs-wiki-discuss] another planner-annotation function...
Date: Thu, 22 Apr 2004 08:17:46 -0700
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (darwin)

Hi all, 

I often want to include links to pdf files on my harddrive.  but
opening the pdf file to make a note about it is distasteful, so I
ginned up this annotation function for dired buffers...

;; make links for dired buffers....
(defun planner-annotation-from-dired ()
  "Return the filename on the current line in dired"
  (when (planner-derived-mode-p 'dired-mode)
    (concat "[[file:" (dired-get-filename) "]]")))

(add-hook 'planner-annotation-functions 'planner-annotation-from-dired)
(setq remember-annotation-functions planner-annotation-functions)


Cheers,  Jody


-- 
Jody Klymak      http://opg1.ucsd.edu/~jklymak/
mailto:address@hidden   





reply via email to

[Prev in Thread] Current Thread [Next in Thread]