From c5fa55a5df10aad0d39b38ac7f53c7eff80cbd43 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sun, 16 May 2021 23:06:15 -0400 Subject: [PATCH] eww: remove unused function --- config.org | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/config.org b/config.org index b72aa70..63939b9 100644 --- a/config.org +++ b/config.org @@ -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)) -- 2.39.2