From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: help-gnu-emacs@gnu.org
Subject: Re: eww - multiple buffers
Date: Mon, 13 Jun 2016 10:55:40 +0200 [thread overview]
Message-ID: <575E750C.4010407@easy-emacs.de> (raw)
In-Reply-To: <878tyd8536.fsf@web.de>
Here is a eww-browse-url based hack, displaying the initials of visited
URL in buffer-name
(defun ar--compose-buffer-name-initials (liste)
(let (erg)
(dolist (ele liste)
(unless (string= "" ele)
(setq erg (concat erg (char-to-string (aref ele 0))))))
erg))
(defun ar-eww-browse-url (url &optional new-window)
(when new-window
(if (stringp new-window)
(set-buffer (get-buffer-create (concat "*eww " new-window "*")))
(pop-to-buffer-same-window (generate-new-buffer "*eww*")))
(eww-mode))
(eww url))
(defun ar-eww (&optional new-buffer)
(interactive "P")
(let* ((erg (read-from-minibuffer "Url: "))
(acronym (ar--compose-buffer-name-initials (split-string
(substring erg (ignore-errors (1+ (string-match "www\\." erg))))
"[^a-z]"))))
(if (eq 4 (prefix-numeric-value new-buffer))
(ar-eww-browse-url erg acronym)
(ar-eww-browse-url erg))))
prev parent reply other threads:[~2016-06-13 8:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-09 7:27 eww - multiple buffers Andreas Röhler
2016-06-09 10:39 ` Tassilo Horn
2016-06-09 10:55 ` Rasmus
2016-06-09 14:24 ` Andreas Röhler
2016-06-09 14:31 ` Kaushal Modi
2016-06-10 14:57 ` Michael Heerdegen
2016-06-13 8:21 ` Andreas Röhler
2016-06-13 8:55 ` Andreas Röhler [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=575E750C.4010407@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.