Function: browse-url-chromium
browse-url-chromium is an autoloaded, interactive and byte-compiled
function defined in browse-url.el.gz.
Signature
(browse-url-chromium URL &optional NEW-WINDOW)
Documentation
Ask the Chromium WWW browser to load URL.
Default to the URL around or before point. Invokes the program
specified by browse-url-chromium-program. Passes the strings in
variable browse-url-chromium-arguments to that program.
Interactively, if the variable browse-url-new-window-flag is non-nil,
loads the document in a new Chromium window. A non-nil prefix argument
reverses the effect of browse-url-new-window-flag.
Non-interactively, this uses the optional second argument NEW-WINDOW
instead of browse-url-new-window-flag.
Probably introduced at or before Emacs version 32.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/net/browse-url.el.gz
;;;###autoload
(defun browse-url-chromium (url &optional new-window)
"Ask the Chromium WWW browser to load URL.
Default to the URL around or before point. Invokes the program
specified by `browse-url-chromium-program'. Passes the strings in
variable `browse-url-chromium-arguments' to that program.
Interactively, if the variable `browse-url-new-window-flag' is non-nil,
loads the document in a new Chromium window. A non-nil prefix argument
reverses the effect of `browse-url-new-window-flag'.
Non-interactively, this uses the optional second argument NEW-WINDOW
instead of `browse-url-new-window-flag'."
(interactive (browse-url-interactive-arg "URL: "))
(setq url (browse-url-encode-url url))
(let* ((process-environment (browse-url-process-environment)))
(apply #'start-process
(concat "chromium " url) nil
browse-url-chromium-program
(append browse-url-chromium-arguments
(and new-window '("--new-window"))
(list url)))))