A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/veshboo/emacs below:

veshboo/emacs: Emacs xwidget webkit support for macOS X Cocoa

nsxwidget - NS Cocoa backend for Emacs xwidgets

This repo supports Emacs feature xwidgets on native macOS X Cocoa.

Though original Emacs xwidgets builds and works on macOS but must build and run with X window and GTK instead of macOS's own GUI framework, resulting unaligned styles and UX with surrounding desktop environment.

WARNING This software is EXPERIMENTAL and UNSTABLE, can causes lost of data you are working on with this.

For example, while I develop, once watched an abrupt termination of this program that is not resolved.

Reviewing pandoc generated html in emacs xwidget webkit for mac os x,

On quite recent macOS X system with Xcode and WebKit2

git clone https://github.com/veshboo/emacs.git
git checkout master
brew install texinfo
brew install gnutls
export PATH=/usr/local/opt/texinfo/bin:$PATH
export LDFLAGS=-L/usr/local/opt/texinfo/lib
./autogen.sh
./configure --prefix=$HOME/works/emacs-devel --with-xwidgets
make install

For general build information, read INSTALL.REPO.

Your Emacs app built is located under prefix/nextstep/Emacs.app ... you can run it from command line

cd $HOME/works/emacs-devel/emacs
./nextstep/Emacs.app/Contents/MacOS/Emacs

or by double-clicking Emacs app icon under prefix/nextstep folder in Finder.

Brief xwidget webkit commands and key mappings Example customization using xwidget webkit
;; In ~/.emacs or ~/.emacs.d/init.el
(setq browse-url-browser-function 'xwidget-webkit-browse-url)
* Then, many packages supporting `browse-url` will work with xwidget webkit

* For example, try `C-c C-c p` if you are using `markdown-preview`.
(require 'search-web)
(global-set-key (kbd "C-c w") 'search-web)
(defun browse-url-default-browser (url &rest args)
  "Override `browse-url-default-browser' to use `xwidget-webkit' URL ARGS."
  (xwidget-webkit-browse-url url args))
(defvar xwidget-webkit-bookmark-jump-new-session) ;; xwidget.el
(defvar xwidget-webkit-last-session-buffer) ;; xwidget.el
(add-hook 'pre-command-hook
          (lambda ()
            (if (eq this-command #'bookmark-bmenu-list)
                (if (not (eq major-mode 'xwidget-webkit-mode))
                    (setq xwidget-webkit-bookmark-jump-new-session t)
                  (setq xwidget-webkit-bookmark-jump-new-session nil)
                  (setq xwidget-webkit-last-session-buffer (current-buffer))))))
* `RET` on a URL bookmark will show the page in the window with
  current `*Bookmark List*`

* It will create a new `xwidget-webkit-mode` buffer if the
  previous buffer in the selected window is not a
  `xwidget-webkit-mode`.  Otherwise, it will browse in the
  previous `xwidget-webkit-mode` buffer.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4