]> git.armaanb.net Git - config.org.git/commitdiff
eww: remove unused function
authorArmaan Bhojwani <me@armaanb.net>
Mon, 17 May 2021 03:06:15 +0000 (23:06 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Mon, 17 May 2021 03:06:15 +0000 (23:06 -0400)
config.org

index b72aa70a53f1642cbdf73bcfaad6a0cf189a463c..63939b94cd128fd95aa4748e98778679279cd8d1 100644 (file)
@@ -438,36 +438,18 @@ Some EWW enhancements.
     :bind (("C-c w" . eww))
     :hook (eww-after-render-hook prot-eww--rename-buffer))
 #+end_src
-*** Better entrypoint
+*** Keybinding
 #+begin_src emacs-lisp
-  ;; From https://protesilaos.com/dotemacs/
-  (defun prot-eww-browse-dwim (url &optional arg)
-    "Visit a URL, maybe from `eww-prompt-history', with completion.
-
-  With optional prefix ARG (\\[universal-argument]) open URL in a
-  new eww buffer.
-
-  If URL does not look like a valid link, run a web query using
-  `eww-search-prefix'.
-
-  When called from an eww buffer, provide the current link as
-  initial input."
-    (interactive
-     (list
-      (completing-read "Query:" eww-prompt-history
-                       nil nil (plist-get eww-data :url) 'eww-prompt-history)
-      current-prefix-arg))
-    (eww url (if arg 4 nil)))
-
-  (global-set-key (kbd "C-c w") 'prot-eww-browse-dwim)
+  (global-set-key (kbd "C-c w") 'eww)
 #+end_src
 ** IRC
+*** Setup ERC
 #+begin_src emacs-lisp
   (use-package erc
     :straight (:type built-in)
     :config
-    (load "~/.emacs.d/irc.el")
     (erc-notifications-mode 1)
+    (erc-track-enable)
     (erc-smiley-disable)
     :custom (erc-prompt-for-password . nil))