mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Minor tweaks & byte-compiler offerings
This commit is contained in:
@ -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)))
|
||||
|
@ -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))))
|
||||
|
||||
|
Reference in New Issue
Block a user