Fix doom/help-package-config

And recenter after jumping to file.
This commit is contained in:
Henrik Lissner 2019-05-06 22:13:31 -04:00
parent c324992f7a
commit e173fcbd54
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -441,5 +441,6 @@ If prefix arg is present, refresh the cache."
(select (completing-read "Jump to config: " (split-string results "\n" t))))
(cl-destructuring-bind (file line _match)
(split-string select ":")
(pop-to-buffer file)
(goto-line line))))
(find-file (expand-file-name file doom-emacs-dir))
(goto-line (string-to-number line))
(recenter))))