Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
Signed-off-by: Psionik K <[email protected]>
  • Loading branch information
psionic-k committed Jan 24, 2024
1 parent fa60372 commit 2da0fa3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lisp/scratch-pkgs.el
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
(provide '%1$s)
;;; %1$s.el ends here.\n"
"Template for file backed scratch."
"Template for file-backed scratch."
:group 'scratch-pkgs
:type 'string)

Expand Down Expand Up @@ -158,7 +158,7 @@ which ones are scratch by looking at the local repos."
repo-paths)))

(defun scratch-pkgs--read-package ()
"Return PATH to package root."
"Return path to package root feature."
(let ((repo-path (scratch-pkgs--read)))
(expand-file-name (concat (car repo-path) ".el") (cdr repo-path))))

Expand Down Expand Up @@ -232,6 +232,8 @@ which ones are scratch by looking at the local repos."
(file-path (expand-file-name file-name dir-name))
(buffer (or (get-buffer file-name)
(find-file-noselect file-path))))
;; TODO consider directory creation to get rid of message about the user
;; needing to do it.
(funcall scratch-pkgs-init buffer)
(switch-to-buffer buffer)
(emacs-lisp-mode)
Expand Down

0 comments on commit 2da0fa3

Please sign in to comment.