From 2d11c0bc4b72f3740b664f2549294b2c5a2277d5 Mon Sep 17 00:00:00 2001 From: toctan Date: Wed, 30 Jul 2014 20:24:33 +0800 Subject: [PATCH 1/2] A better `prelude-view-url` - remove HTTP headers, what we care most of the time is the content - `set-auto-mode` is way better than the naive xml, html tag check --- core/prelude-core.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/prelude-core.el b/core/prelude-core.el index 8716521..265803f 100644 --- a/core/prelude-core.el +++ b/core/prelude-core.el @@ -266,8 +266,11 @@ there's a region, all lines that region covers will be duplicated." (url (read-from-minibuffer "URL: " default))) (switch-to-buffer (url-retrieve-synchronously url)) (rename-buffer url t) - (cond ((search-forward " Date: Wed, 30 Jul 2014 20:51:22 +0800 Subject: [PATCH 2/2] Update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 74d9bfb..8388019 100644 --- a/README.md +++ b/README.md @@ -286,7 +286,7 @@ Keybinding | Description C-c n | Fix indentation in buffer and strip whitespace. C-c f | Open recently visited file. C-M-\\ | Indent region (if selected) or the entire buffer. -C-c u | Open URL in your default browser. +C-c u | Open a new buffer containing the contents of URL. C-c e | Eval a bit of Emacs Lisp code and replace it with its result. C-c s | Swap two active windows. C-c D | Delete current file and buffer.