diff --git a/core/autoload/help.el b/core/autoload/help.el index c9c232067..b664da6bf 100644 --- a/core/autoload/help.el +++ b/core/autoload/help.el @@ -440,11 +440,12 @@ If prefix arg is present, refresh the cache." (cl-destructuring-bind (file line _match) ,(split-string location ":") (find-file (expand-file-name file doom-emacs-dir)) - (goto-line (string-to-number line)) + (goto-char (point-min)) + (forward-line (1- line)) (recenter))))))))) ;;;###autoload -(defun doom/help-package-config (package &optional arg) +(defun doom/help-package-config (package) "Jump to any `def-package!', `after!' or ;;;###package block for PACKAGE. This only searches `doom-emacs-dir' (typically ~/.emacs.d) and does not include @@ -475,5 +476,6 @@ config blocks in your private config." (user-error "This package isn't configured by you or Doom"))) ":") (find-file (expand-file-name file doom-emacs-dir)) - (goto-line (string-to-number line)) + (goto-char (point-min)) + (forward-line (1- line)) (recenter))) diff --git a/core/autoload/scratch.el b/core/autoload/scratch.el index 64f233599..91cbe2da8 100644 --- a/core/autoload/scratch.el +++ b/core/autoload/scratch.el @@ -73,7 +73,8 @@ following: ;;;###autoload (defun doom|persist-scratch-buffers () "Save all scratch buffers to `doom-scratch-dir'." - (dolist (buffer (cl-delete-if-not #'buffer-live-p doom-scratch-buffers)) + (setq doom-scratch-buffers (cl-delete-if-not #'buffer-live-p doom-scratch-buffers)) + (dolist (buffer doom-scratch-buffers) (with-current-buffer buffer (doom|persist-scratch-buffer)))) diff --git a/core/core-editor.el b/core/core-editor.el index 671d0565d..428381473 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -291,6 +291,7 @@ savehist file." ;; `helpful' --- a better *help* buffer (def-package! helpful + ;; a better *help* buffer :commands helpful--read-symbol :init (define-key! diff --git a/core/core.el b/core/core.el index b4050b176..bd6cff878 100644 --- a/core/core.el +++ b/core/core.el @@ -171,7 +171,7 @@ Doom was setup, which may cause problems.") jka-compr-verbose doom-debug-mode ; silence compression messages ffap-machine-p-known 'reject ; don't ping things that look like domain names find-file-visit-truename t ; resolve symlinks when opening files - idle-update-delay 2 ; update ui slightly less often + idle-update-delay 1 ; update ui slightly less often ;; be quiet at startup; don't load or display anything unnecessary inhibit-startup-message t inhibit-startup-echo-area-message user-login-name diff --git a/modules/emacs/eshell/autoload/settings.el b/modules/emacs/eshell/autoload/settings.el index 276f44b02..44f848cb8 100644 --- a/modules/emacs/eshell/autoload/settings.el +++ b/modules/emacs/eshell/autoload/settings.el @@ -2,7 +2,13 @@ ;;;###autodef (defun set-eshell-alias! (&rest aliases) - "Define aliases for eshell." + "Define aliases for eshell. + +ALIASES is a flat list of alias -> command pairs. e.g. + + (set-eshell-alias! + \"hi\" \"echo hello world\" + \"bye\" \"echo goodbye world\")" (or (cl-evenp (length aliases)) (signal 'wrong-number-of-arguments (list 'even (length aliases)))) (after! eshell