Load package before using browse-at-remote-prefer-symbolic

Fixes a void-variable error if used too early in a session.
This commit is contained in:
Henrik Lissner 2021-03-13 12:02:44 -05:00
parent 2391328d8c
commit ca1496f297

View file

@ -11,6 +11,7 @@
"Open URL to current file (and line if selection is active) in browser. "Open URL to current file (and line if selection is active) in browser.
If prefix ARG, negate the default value of `browse-at-remote-prefer-symbolic'." If prefix ARG, negate the default value of `browse-at-remote-prefer-symbolic'."
(interactive "P") (interactive "P")
(require 'browse-at-remote)
(let ((browse-at-remote-prefer-symbolic (let ((browse-at-remote-prefer-symbolic
(if arg (if arg
(not browse-at-remote-prefer-symbolic) (not browse-at-remote-prefer-symbolic)
@ -22,6 +23,7 @@ If prefix ARG, negate the default value of `browse-at-remote-prefer-symbolic'."
"Copy URL to current file (and line if selection is active) to clipboard. "Copy URL to current file (and line if selection is active) to clipboard.
If prefix ARG, negate the default value of `browse-at-remote-prefer-symbolic'." If prefix ARG, negate the default value of `browse-at-remote-prefer-symbolic'."
(interactive "P") (interactive "P")
(require 'browse-at-remote)
(let ((browse-at-remote-prefer-symbolic (let ((browse-at-remote-prefer-symbolic
(if arg (if arg
(not browse-at-remote-prefer-symbolic) (not browse-at-remote-prefer-symbolic)