Fix #4784: browse-at-remote-prefer-symbolic = nil
+ Default browse-at-remote-prefer-symbolic to nil because a permanent URL is generally more desirable for developers sharing links. + 'SPC g y' and 'SPC o o' now support the prefix arg, which will negate the default value of browse-at-remote-prefer-symbolic for that call.
This commit is contained in:
parent
26319322b2
commit
fa4f03de22
4 changed files with 33 additions and 4 deletions
|
@ -100,7 +100,13 @@ otherwise in default state."
|
|||
|
||||
|
||||
(after! browse-at-remote
|
||||
;; It's more sensible that the user have more options. If they want line
|
||||
;; numbers, users can request them by making a selection first. Otherwise
|
||||
;; omitting them.
|
||||
(setq browse-at-remote-add-line-number-if-no-region-selected nil)
|
||||
;; Opt to produce permanent links with `browse-at-remote' by default,
|
||||
;; using commit hashes rather than branch names.
|
||||
(setq browse-at-remote-prefer-symbolic nil)
|
||||
|
||||
;; HACK `browse-at-remote' produces urls with `nil' in them, when the repo is
|
||||
;; detached. This creates broken links. I think it is more sensible to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue