         (file-notify-rm-watch (pop modi/eww-file-notify-descriptors-list))))
 
     (with-eval-after-load 'eww
-      (bind-key "C-c C-k" #'modi/eww-quit eww-mode-map))))
+      ;; Redefine the `q' binding in `eww-mode-map'
+      (bind-keys
+       :map eww-mode-map
+        "q" . modi/eww-quit-and-update-fn-descriptors ))))
 
 
 (provide 'setup-eww)

;; Time-stamp: <2015-10-28 11:04:56 kmodi>

;; Eww - Emacs browser (needs emacs 24.4 or higher)

(use-package eww
  :commands (eww eww-open-file 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))
    (key-chord-define-global "-=" #'eww))
  :config
  (progn
    (setq modi/eww-file-notify-descriptors-list (quote nil))
    ;; (setq eww-search-prefix                 "https://duckduckgo.com/html/?q=")
    (setq eww-search-prefix                 "https://www.google.com/search?q=")
    (setq eww-download-directory            "~/downloads")

              ;; "No URL under point"
              (message "Copied page url: %s" (eww-copy-page-url))))))

    (defun modi/eww-keep-lines (regexp)
      "Show only the lines matching regexp in the web page.
Call `eww-reload' to undo the filtering."
