From e173fcbd54bb21b3db5fc0b6cd17520c972cabe9 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 6 May 2019 22:13:31 -0400 Subject: [PATCH] Fix doom/help-package-config And recenter after jumping to file. --- core/autoload/help.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/autoload/help.el b/core/autoload/help.el index 1910ccb32..175f2d9bc 100644 --- a/core/autoload/help.el +++ b/core/autoload/help.el @@ -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))))