help-gnu-emacs
[Top][All Lists]
Advanced

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

ELPA package listings [formerly: Another 'best' practices question ??]


From: Sebastian Tennant
Subject: ELPA package listings [formerly: Another 'best' practices question ??]
Date: Mon, 29 Oct 2007 14:29:29 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux)

Hi Tom,

Just upgraded to package.el version 0.6.  Glad to see ELPA (Every
Load-Path Answer) is going from strength to strength.

Quoth Tom Tromey <address@hidden>:
> Sebastian> Regarding ELPA, a couple of suggestions if I may be so bold:
> Sebastian>  1.  How about 'installed' rather than <blank> in the status 
> column.
>
> I chose blank because it looks sort of busy with "installed".  But I
> don't really know what is best -- "installed" is clearer.

'installed' may be clearer, but you're right, it makes it too busy...
font-lock-highlighting to the rescue... (and this time I've found the time
to do something about it myself!)


diff -c /home/sebyte/.emacs.d/elpa/package.el\~ 
/home/sebyte/.emacs.d/elpa/package.el
*** /home/sebyte/.emacs.d/elpa/package.el~      Mon Oct 29 11:15:02 2007
--- /home/sebyte/.emacs.d/elpa/package.el       Mon Oct 29 13:40:10 2007
***************
*** 1044,1049 ****
--- 1044,1051 ----
  (defvar package-menu-mode-map nil
    "Local keymap for `package-menu-mode' buffers.")
  
+ (defvar package-menu-font-lock-keywords '(("^.*installed.*$" . 
font-lock-comment-face)))
+ 
  (unless package-menu-mode-map
    (setq package-menu-mode-map (make-keymap))
    (suppress-keymap package-menu-mode-map)
***************
*** 1074,1079 ****
--- 1076,1082 ----
    (use-local-map package-menu-mode-map)
    (setq major-mode 'package-menu-mode)
    (setq mode-name "Package Menu")
+   (setq font-lock-defaults (list 'package-menu-font-lock-keywords t))
    (setq truncate-lines t)
    (setq buffer-read-only t)
    ;; Support Emacs 21.

Diff finished.  Mon Oct 29 14:24:16 2007


Hope this is useful in some way.

Sebastian





reply via email to

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