Minor refactor across the board
This commit is contained in:
parent
dd0d264a27
commit
fbcb4e6973
7 changed files with 24 additions and 24 deletions
|
@ -40,8 +40,9 @@
|
|||
|
||||
;;;###autoload
|
||||
(defun doom-package-backend (name &optional noerror)
|
||||
"Get which backend the package NAME was installed with. Can either be elpa or
|
||||
quelpa. Throws an error if NOERROR is nil and the package isn't installed."
|
||||
"Get which backend the package NAME was installed with. Can either be elpa,
|
||||
quelpa or emacs (built-in). Throws an error if NOERROR is nil and the package
|
||||
isn't installed."
|
||||
(cl-check-type name symbol)
|
||||
(cond ((assq name quelpa-cache) 'quelpa)
|
||||
((assq name package-alist) 'elpa)
|
||||
|
|
|
@ -34,8 +34,7 @@
|
|||
((and (require 'frameset nil t)
|
||||
(require 'restart-emacs nil t))
|
||||
(restart-emacs--restore-frames-using-desktop file))
|
||||
((error "No session backend to load session with")))
|
||||
(select-frame-set-input-focus (selected-frame)))
|
||||
((error "No session backend to load session with"))))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-session-file ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue