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

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

[emacs-wiki-discuss] snippet to ido-switch instead of planner-goto today


From: Jody Klymak
Subject: [emacs-wiki-discuss] snippet to ido-switch instead of planner-goto today
Date: Mon, 28 Jun 2004 11:14:46 -0700
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (darwin)

Hi all,

I've found planner-goto-today kind of annoying because it always
reopens the planner file in whatever window I am working in, whereas
switching buffers in ido-mode allows each buffer to stay in the frame
I put it in.  Here is a little snippet that I am using instead:

(defun planner-switch-buffer-today ()
  "Switch buffer to planner-today"
  (interactive)
  (if (get-buffer (planner-today))
      (ido-visit-buffer (planner-today) ido-default-buffer-method)
    (planner-goto (planner-today))))

Cheers,  Jody

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





reply via email to

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