Variable: browse-url-default-scheme

browse-url-default-scheme is a customizable variable defined in browse-url.el.gz.

Value

"http"

Documentation

URL scheme that browse-url (and related commands) will use by default.

For example, when point is on an URL fragment like
"www.example.org", browse-url will assume that this is an
"http" URL by default (i.e. "http://www.example.org").

Note that if you set this to "https", websites that do not yet support HTTPS may not load correctly in your web browser. Such websites are increasingly rare, but they do still exist.

This variable was added, or its default value changed, in Emacs 29.1.

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/net/browse-url.el.gz
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; URL input

(defcustom browse-url-default-scheme "http"
  "URL scheme that `browse-url' (and related commands) will use by default.

For example, when point is on an URL fragment like
\"www.example.org\", `browse-url' will assume that this is an
\"http\" URL by default (i.e. \"http://www.example.org\").

Note that if you set this to \"https\", websites that do not yet
support HTTPS may not load correctly in your web browser.  Such
websites are increasingly rare, but they do still exist."
  :type 'string
  :version "29.1")