Emacs27.1.50 でWebページ閲覧

Emacs内で本格的にWebブラウジングをすることができます。

と言う記事につられて色々試してみて久しい。

M-x xwidget-webkit-browse-urlを実行してみるのだが

Your Emacs was not compiled with xwidgets support」と

コメントが出る。

Mac OS XEmacsXWidgetsを動かす事を諦めていたが

今回再度挑戦をした。

参考にしたサイトは

A browser in your Emacs (macOS)」です。

[ https://jft.home.blog/2020/01/24/a-browser-in-your-emacs-macos/ ]

此処に書かれている様に実行。

1 brew tap daviderestivo/emacs-head

Now, install Emacs with a couple of options, especially, don’t miss the --with-xwidgets:

 

2 brew install emacs-head --HEAD --with-jansson --without-imagemagick@7 --with-cocoa --with-xwidgets

After installed, you can start browsing in your emacs using xwidget-webkit-browse-url command.

 

Mac OS10.14.6 Mojaveでのbrew install では何故か

--with-janssonは使えない」ので削除してインストール実行。

無事E,macs27.1.50がインストールされた。

(user>local>Cellar>emacs-head@27>HEAD-e29cace_1)

 

早速Emacs27を起動し

「M-X xwidget-webkit-browse-url」を呼び出し

URLhttps://gnu.org/software/emacsを入力。

漸くEmacsから『EmacsWebページを閲覧』を果たせた!!

 

尚、「MacでのWebKitブラウザ機能がマージされた」記事がある

https://tsuu32.hatenablog.com/entry/2020/08/14/050000

と言うサイトも参考にさせてもらった。