-;; Time-stamp: <2015-02-23 11:10:01 kmodi>
+;; Time-stamp: <2015-02-24 00:32:04 kmodi>
 
 ;; Eww - Emacs browser (needs emacs 24.4 or higher)
 
 (use-package eww
+  :commands (eww eww-search-words
+                 modi/eww-copy-link-first-search-result
+                 modi/eww-im-feeling-lucky)
+  :init
+  (progn
+    (bind-keys
+     :map modi-mode-map
+     ("M-s M-w" . eww-search-words)
+     ("M-s M-l" . modi/eww-copy-link-first-search-result))
+    (when (featurep 'key-chord)
+      (key-chord-define-global "-=" #'eww)))
   :config
   (progn
     (setq modi/eww-file-notify-descriptors-list (quote nil))

     ("<C-return>" . eww-submit)) ; S-TAB Jump to previous link on the page
    (bind-keys
     :map eww-checkbox-map
     ("<down-mouse-1>" . eww-toggle-checkbox))
    (bind-keys
     :map modi-mode-map
     ("M-s M-w" . eww-search-words)
     ("M-s M-l" . modi/eww-copy-link-first-search-result))
    (when (featurep 'key-chord)
      (key-chord-define-global       "-=" #'eww)
      (key-chord-define eww-mode-map "XX" #'modi/eww-quit))))


(provide 'setup-eww)

    ;; http://emacs.stackexchange.com/a/8191/115
    (use-package org-eww
      :load-path "from-git/org-mode/contrib/lisp"
      :commands (org-eww-copy-for-org-mode)
      :init
      (bind-keys
       :map eww-mode-map
       ("o" . org-eww-copy-for-org-mode)))
