From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manish Subject: Re: Increase width in agenda view? Date: Tue, 20 Apr 2010 19:28:05 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4DyB-00009p-33 for emacs-orgmode@gnu.org; Tue, 20 Apr 2010 09:58:31 -0400 Received: from [140.186.70.92] (port=56628 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4Dy9-00008k-M0 for emacs-orgmode@gnu.org; Tue, 20 Apr 2010 09:58:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4Dy7-0000P9-Mb for emacs-orgmode@gnu.org; Tue, 20 Apr 2010 09:58:29 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:34111) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4Dy7-0000Oj-HX for emacs-orgmode@gnu.org; Tue, 20 Apr 2010 09:58:27 -0400 Received: by pwi2 with SMTP id 2so5283486pwi.0 for ; Tue, 20 Apr 2010 06:58:25 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Johan Ekh Cc: emacs-orgmode@gnu.org 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