emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Emacs package management with org-mode
@ 2009-11-14 18:35 andrea Crotti
  2009-11-20 12:42 ` David Maus
  0 siblings, 1 reply; 2+ messages in thread
From: andrea Crotti @ 2009-11-14 18:35 UTC (permalink / raw)
  To: emacs-orgmode

I was keeping a list of packages I use with emacs (here)
http://github.com/AndreaCrotti/Emacs-conf/blob/master/.emacs.d/README.txt

but now I had another idea, why don't create a table with org mode?

I thought a table like

| PACK | UPDATE CMD | REPO | COMMENT | RANK | CONF |

where
PACK: name and link
UPDATE CMD: command shell or elisp to give to update it
REPO: where is actually stored (could be a file or a directory)
CONF: my configuration file

So in this way in my dream if for example I want to update auto-complete
my function
- looks for it on the table
- cd to the right directory
- git pull the differences (and do other things as needed)

and I have all the informations in one table.

It's not so easy I guess but it maybe worth the effort, what do you think?
Thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Emacs package management with org-mode
  2009-11-14 18:35 Emacs package management with org-mode andrea Crotti
@ 2009-11-20 12:42 ` David Maus
  0 siblings, 0 replies; 2+ messages in thread
From: David Maus @ 2009-11-20 12:42 UTC (permalink / raw)
  To: andrea Crotti; +Cc: emacs-orgmode

Hi Andrea,

At Sat, 14 Nov 2009 18:35:28 +0000 (UTC),
andrea Crotti wrote:
> 
> I was keeping a list of packages I use with emacs (here)
> http://github.com/AndreaCrotti/Emacs-conf/blob/master/.emacs.d/README.txt
> 
> but now I had another idea, why don't create a table with org mode?
> 
> I thought a table like
> 
> | PACK | UPDATE CMD | REPO | COMMENT | RANK | CONF |
> 
> where
> PACK: name and link
> UPDATE CMD: command shell or elisp to give to update it
> REPO: where is actually stored (could be a file or a directory)
> CONF: my configuration file
> 
> So in this way in my dream if for example I want to update auto-complete
> my function
> - looks for it on the table
> - cd to the right directory
> - git pull the differences (and do other things as needed)
> 
> and I have all the informations in one table.
> 
> It's not so easy I guess but it maybe worth the effort, what do you think?
> Thanks

Interesting idea as this sounds as a nice way to manage
my list of remote repositories I am subscribed to. I cannot provide a
fully working solution (yet?) but after playing arround with column
view (Manual, Sec. 7.5) something like that could be a starting point:

,----
| * Repositories
|   :PROPERTIES:
|   :COLUMNS: %25ITEM %25Path %12LastUpdate
|   :END:
|         
|   #+BEGIN: columnview :hlines 1 :id local
|   | ITEM            | Path        | LastUpdate       |
|   |-----------------+-------------+------------------|
|   | * Repository    |             |                  |
|   | ** Repository 1 | /home/david | 2009-10-11 11:12 |
|   #+END:
|   
| ** Repository 1
|   :PROPERTIES:
|   :Path: /home/david
|   :LastUpdate: 2009-10-11 11:12
|   :END:
`----

Instead of using a table to *store* the information about the
repositories, use a dynamically created property view to display
repository information that are kept in headlines with the appropriate
properites.

So an update-function would process all "repository headlines"
(org-map-entry), read it's properties and act according to
them. Despite of simply executing an update command it seems to me
that wrapping common update commands (wget, git, hg etc.) in elisp
functions that call the program and parse it's output. For instance
one might find it useful to get notified if an update failed or, more
general, keep a condensed update log for each repository.

Regards,

  -- David

-- 
OpenPGP... 0x316F4BE4670716FD
Jabber.... dmjena@jabber.org
Email..... maus.david@gmail.com
ICQ....... 241051416

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-20 12:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-14 18:35 Emacs package management with org-mode andrea Crotti
2009-11-20 12:42 ` David Maus

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).