Hot answers tagged

4

I think the following should mostly do what you want (defvar w3m-dedicated-window nil) (defun w3m-browse-url-dedicated-window (url &optional new-session) (let ((w3m-pop-up-windows t)) (if (and w3m-dedicated-window (window-live-p w3m-dedicated-window)) (with-selected-window w3m-dedicated-window (w3m-browse-url url ...


3

I guess internally this uses the function 'format' so you can use %% to produce one %


3

From elisp documentation: Emacs is usually able to display images when it is run on a graphical terminal. Images cannot be displayed in a text terminal, on certain graphical terminals that lack the support for this, or if Emacs is compiled without image support. So the answer is no.


3

The ivy way In short, I'm looking for a way for ivy-switch-buffer to filter buffer names through a user-given function before displaying them. ivy calls such filters "display transformers" and stores them in the property list ivy--display-transformers-list. The intention is that the user or package author call ivy-set-display-transformer: ivy-set-...


2

The question asked for a solution specific to ivy, but it should be pointed out that emacs-w3m has its own superior solution, w3m-select-buffer. When one's focus / point is in an emacs-w3m buffer, one can use the function using its default keybinding C-c C-s, but one can also use it from any emacs buffer by evaluating it explicitly, eg. M-x w3m-select-buffer....


2

You can install sx from melpa with M-x package-install RET sx RET it is on: https://github.com/vermiculus/sx.el quoting the site: SX is a full-featured Stack Exchange mode for GNU Emacs 24+. Using the official API, it provides a versatile experience for the Stack Exchange network within Emacs itself.


1

It occurs to me that an xml-query.el query could give you the tag body ("Stack overflow question title" in your example). Your code would then find that in the rendered page using search-forward.


1

You should be able to get the behaviour you want by setting the w3m-pop-up-windows variable to t. There's also w3m-pop-up-frames in case you want OS windows rather than Emacs windows. You may have to ensure that w3m-use-tab is set to nil as it didn't seem to work in the same way when I had it enabled. One of Emacs' best features is that it is self-...


1

This is an example of what I have in my init file, just customize it a little bit and you're ready to go (defun duckduckgo (what) "Use ddg to search for WHAT." (interactive "sSearch: ") (browse-url-firefox (concat "https://duckduckgo.com/?t=lm&q=" (url-unhex-string what))))


Only top voted, non community-wiki answers of a minimum length are eligible