From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-orgmode@gnu.org
Subject: Re: Default directory in org-agenda-mode
Date: Wed, 12 Jan 2011 20:23:03 +0100 [thread overview]
Message-ID: <87wrmax6y0.fsf@member.fsf.org> (raw)
In-Reply-To: 8739oy3rho.fsf@gmail.com
niels giesen <niels.giesen@gmail.com> writes:
Hi Niels,
> To this end I tried doing the following:
>
> #+begin_src emacs-lisp
> (add-to-list
> 'default-directory-alist
> `(org-agenda-mode
> ,org-directory))
> #+end_src
`default-directory-alist' is defined in dired-x and only used by that.
Confusing that it's not prefixed with dired...
For your purpose, I use that:
--8<---------------cut here---------------start------------->8---
(defun th-org-agenda-mode-init ()
(setq default-directory (file-name-as-directory org-directory))
(hl-line-mode 1))
(add-hook 'org-agenda-mode-hook 'th-org-agenda-mode-init)
--8<---------------cut here---------------end--------------->8---
Bye,
Tassilo
prev parent reply other threads:[~2011-01-12 19:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-12 18:29 Default directory in org-agenda-mode niels giesen
2011-01-12 19:12 ` Nick Dokos
2011-01-12 19:41 ` Niels Giesen
2011-01-12 19:23 ` Tassilo Horn [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wrmax6y0.fsf@member.fsf.org \
--to=tassilo@member.fsf.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.