From: Manish <mailtomanish.sharma@gmail.com>
To: Johan Ekh <ekh.johan@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Increase width in agenda view?
Date: Tue, 20 Apr 2010 19:28:05 +0530 [thread overview]
Message-ID: <t2le7cdbe31004200658t540c77c5m9654e8b2021c1199@mail.gmail.com> (raw)
In-Reply-To: <t2l417457b51004190949x5590b193jbad0ca512ed84a69@mail.gmail.com>
On Mon, Apr 19, 2010 at 10:19 PM, Johan Ekh wrote:
> Hi all, is it possible to increase the width in the Week-agenda
> view such that the TODO keyword and the title task text get
> more space? My tags to the right of the title text gets
> misaligned if the title text is too long.
If you are okay with hiding CATEGORY then you can try the following
hack from Manuel Hermenegildo[fn:1]
--8<---------------cut here---------------start------------->8---
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; With this typing "L" in agenda and todo buffers allows toggling
;; whether category/file names appear or not at the left or entries in
;; agenda/todo listings.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defvar my-org-agenda-list-category t)
(defun my-org-agenda-toggle-list-category ()
"Toggles whether category/file name appears or not at the left
of entries in agenda listings. Useful to unclutter listings."
(interactive)
(if my-org-agenda-list-category
(progn
(setq my-org-agenda-list-category nil)
(setq org-agenda-prefix-format
'((agenda . " %-12:c%?-12t% s")
(timeline . " % s")
(todo . " %-12:c")
(tags . " %-12:c")
(search . " %-12:c")))
)
(setq my-org-agenda-list-category t)
(setq org-agenda-prefix-format
'((agenda . " %?-12t% s")
(timeline . " % s")
(todo . " ")
(tags . " ")
(search . " ")))
)
(org-agenda-redo))
(my-org-agenda-toggle-list-category)
(add-hook
'org-mode-hook
(lambda ()
(define-key org-agenda-keymap "L" 'my-org-agenda-toggle-list-category)
(define-key org-agenda-mode-map "L" 'my-org-agenda-toggle-list-category)
))
--8<---------------cut here---------------end--------------->8---
Regards
--
Manish
Footnotes:
[fn:1] http://article.gmane.org/gmane.emacs.orgmode/10909
prev parent reply other threads:[~2010-04-20 13:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-19 16:49 Increase width in agenda view? Johan Ekh
2010-04-20 13:33 ` Carsten Dominik
2010-04-20 19:42 ` Johan Ekh
2010-04-20 13:58 ` Manish [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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=t2le7cdbe31004200658t540c77c5m9654e8b2021c1199@mail.gmail.com \
--to=mailtomanish.sharma@gmail.com \
--cc=ekh.johan@gmail.com \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).