;; Use the Emacs Web Wowser (EWW) when not running under X11:
;; (or (eq window-system 'x)
-;; (setq browse-url-browser-function #'eww-browse-url))
+;; (setopt browse-url-browser-function #'eww-browse-url))
;; To always save modified buffers before displaying the file in a browser:
-;; (setq browse-url-save-file t)
+;; (setopt browse-url-save-file t)
;; To invoke different browsers/tools for different URLs, customize
;; `browse-url-handlers'. In earlier versions of Emacs, the same
`file:' to any file name beginning with `/'.
For example, adding to the default a specific translation of an ange-ftp
-address to an HTTP URL:
-
- (setq browse-url-filename-alist
- \\='((\"/webmaster@webserver:/home/www/html/\" .
- \"https://www.example.org/\")
- (\"^/\\(ftp@\\|anonymous@\\)?\\([^:/]+\\):/*\" . \"ftp://\\2/\")
- (\"^/\\([^:@/]+@\\)?\\([^:/]+\\):/*\" . \"ftp://\\1\\2/\")
- (\"^/+\" . \"file:/\")))"
+address to an HTTPS URL:
+
+ (setopt browse-url-filename-alist
+ \\='((\"/webmaster@webserver:/home/www/html/\" .
+ \"https://www.example.org/\")
+ (\"^/\\(ftp@\\|anonymous@\\)?\\([^:/]+\\):/*\" . \"ftp://\\2/\")
+ (\"^/\\([^:@/]+@\\)?\\([^:/]+\\):/*\" . \"ftp://\\1\\2/\")
+ (\"^/+\" . \"file:/\")))"
:type '(repeat (cons :format "%v"
(regexp :tag "Regexp")
(string :tag "Replacement")))