Pylookup is a mode to search python documents especially within emacs.





git clone git@github.com:tsgates/pylookup.git
;; add pylookup to your loadpath, ex) "~/.lisp/addons/pylookup"
(setq pylookup-dir "[PATH]")
(add-to-list 'load-path pylookup-dir)
;; load pylookup when compile time
(eval-when-compile (require 'pylookup))
;; set executable file and db file
(setq pylookup-program (concat pylookup-dir "/pylookup.py"))
(setq pylookup-db-file (concat pylookup-dir "/pylookup.db"))
;; to speedup, just load it on demand
(autoload 'pylookup-lookup "pylookup"
"Lookup SEARCH-TERM in the Python HTML indexes." t)
(autoload 'pylookup-update "pylookup"
"Run pylookup-update and create the database at `pylookup-db-file'." t)
(global-set-key "\C-ch" 'pylookup-lookup)
$ cd ~/.lisp/addons/pylookup $ ./pylookup.py -u file:///home/tsgates/.lisp/addons/pylookup/python-2.6.2-docs-html $ ./pylookup.py -l test COMPARISON_FLAGS (in module doctest) [lib];file:///home/tsgates/.lisp/addons/pylookup...
(setq browse-url-browser-function 'w3m-browse-url) ;; w3m (setq browse-url-default-browser "firefox.exe") ;; firefox in M$ Windows
| File | Size | Date | Attached by | |||
|---|---|---|---|---|---|---|
| 1-lookup.png No description | 14.02 kB | 04:06, 22 Jun 2009 | tsgates | Actions | ||
| 2-ido.png No description | 17.54 kB | 04:06, 22 Jun 2009 | tsgates | Actions | ||
| 3-search.png No description | 42.68 kB | 04:06, 22 Jun 2009 | tsgates | Actions | ||
| 4-result.png No description | 51.6 kB | 04:06, 22 Jun 2009 | tsgates | Actions | ||
| 5-browsing.png No description | 110.2 kB | 04:18, 22 Jun 2009 | tsgates | Actions | ||