5 Jul 2008 17:58
generic-apt.el (0.1) --- Generic apt alike interfaces for various package management tools
William Xu <william.xwl <at> gmail.com>
2008-07-05 15:58:07 GMT
2008-07-05 15:58:07 GMT
Currently it supports apt-get and fink backends. Adding new backends is
rather easy.
;;; Commentary:
;; This extenstion tries to provide a generic apt(as used in Debian
;; GNU/Linux) alike interface over various package management tools,
;; such as: apt-get(Debian GNU/Linux), yum(redhat/fedora), emerge(Gentoo
;; GNU/Linux), fink(Mac OS X), pkg-get(Solaris), etc.
;; Put generic-apt files into your load-path first. Then add something similar
;; to the following example to your .emacs. 192.168.1.20 is a remote debian
;; machine, while localhost is a Mac OS X with fink installed.
;;
;; ;; Add this so that we can edit file on remote machine as root. Also
;; ;; note that you should config your ssh agent not to prompt password
;; ;; while logining the remote host.
;;
;; (eval-after-load 'tramp
;; '(progn
;; (add-to-list 'tramp-default-proxies-alist
;; '("192.168.1.20" "\\`root\\'" "/ssh:%h:"))
;; ))
;;
;; (require 'generic-apt-install)
;; (setq generic-apt-select-methods
;; '((apt-get "ssh 192.168.1.20 sudo apt-get")
;; (fink "sudo fink")))
;;
;; Then type: `M-x generic-apt'.
(Continue reading)
And thank you for your comments. Those are exactly the points
I have to improve. I'll do those for the next version.
Thanks for your insightful view,
- Kazuo YAGI
rubikitch Wrote:
> Do you know anything.el?
> It is very great candidate-selection framework.
> It realizes your idea only 4 lines!
>
> (defvar anything-c-source-switch-dir
> '((name . "Switch Directory")
> (candidates . switch-dir-alist)
> (action ("Change directory" . cd))))
>
> Then, add `anything-c-source-switch-dir' into `anything-sources'.
>
> * `switch-split-window-for-alist' should be split into major-mode definition and
RSS Feed