         (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)

      (let ((browse-url-browser-function 'eww-browse-url))
        (call-interactively #'browse-url-of-file)))

    (bind-keys
     :map eww-mode-map
      ("G"           . eww) ; Go to URL
      ("g"           . eww-reload) ; Reload
      ("h"           . eww-list-histories) ; View history
      ("q"           . modi/eww-quit)
      ("r"           . eww-reload) ; Reload
      ("p"           . shr-previous-link)
      ("<backtab>"   . shr-previous-link) ; S-TAB Jump to previous link on the page

;; Time-stamp: <2015-11-04 12:38:18 kmodi>

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

(use-package eww
  :bind (:map modi-mode-map
         ("M-s M-w" . eww-search-words)
         ("M-s M-l" . modi/eww-copy-link-first-search-result))
  :chords (("-=" . eww))
  :commands (eww-open-file ; called by `modi/eww-open-file-with-auto-reload'
             eww
             hydra-launch/eww-and-exit
             eww-list-bookmarks
             hydra-launch/eww-list-bookmarks-and-exit
             modi/eww-im-feeling-lucky
             hydra-launch/modi/eww-im-feeling-lucky-and-exit
             modi/eww-browse-url-of-file
             hydra-launch/modi/eww-browse-url-of-file-and-exit)
  :config
  (progn
    ;; (setq eww-search-prefix                 "https://duckduckgo.com/html/?q=")
    (setq eww-search-prefix                 "https://www.google.com/search?q=")
    (setq eww-download-directory            "~/downloads")
