/gtklookup

Search gtk+ API Reference & Documentation

Primary LanguageEmacs Lisp

===========================
 GTK+ Reference Lookup Mode
===========================

:Author: Taesoo Kim (tsgatesv@gmail.com)
:Date: December 18, 2009

Introduction
============

 GTK+ Reference Lookup Mode (called gtklooup mode) is to search

        GLib,
        GObject,
        GIO,
        Pango,
        ATK,
        GdkPixbuf,
        GDK,
        GTK,

 Online html documentation listed on http://www.gtk.org/documentation.html

 Please check,
    Web  : http://taesoo.org/Opensource/Gtklookup
    Repo : http://github.com/tsgates/gtklookup
    Anything : http://www.emacswiki.org/emacs/Anything
    
Install
=======

 ** [PATH] parameter totally depends on your environment, 
      ex) "~/.emacs.d/gtklookup"

;; ======================================================================
;; add gtklookup to your loadpath, ex) ~/.emacs.d/gtklookup

;; [PATH] without "/"

(setq gtklookup-dir "[PATH]")
(add-to-list 'load-path gtklookup-dir)

(require 'anything)
(require 'gtklookup-autoload)

;;----------------------------------------------------------------------

Lookup
======

 M-x gtklookup-lookup

With auto-complete 
=============

;; ======================================================================
(defvar ac-source-gtk
  '((candidates . gtklookup-get-cache)
    (cache)
    (requires . 3))
  "Source for completing gtk+")

(add-to-list 'ac-sources 'ac-source-gtk) 
;;----------------------------------------------------------------------

Update database
===============
 ./gtklookup.py -u
 
 see, ./gtklookup.py -h for detail

USING W3M
===============

;;setting  w3m
(setq browse-url-browser-function 'w3m-browse-url)
 (autoload 'w3m-browse-url "w3m" "Ask a WWW browser to show a URL." t)
 ;; optional keyboard short-cut
 (global-set-key "\C-xm" 'browse-url-at-point)
 (setq w3m-use-cookies t)
 
;;displaying w3m in other window
(setq browse-url-browser-function 'w3m-browse-url-other-window)
(defun w3m-browse-url-other-window (url &optional newwin)
  (let ((w3m-pop-up-windows t))
    (if (one-window-p) (split-window))
    (other-window 1)
    (w3m-browse-url url newwin)))