-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emacs dashboard breaks daemon with latest emacs pgtk native comp build #373
Comments
seems like M-x dashboard-refresh-buffer does reload dashboard but for some reason Anyone having any ideas why its suddenly happening? this used to work perfectly fine a week back on further inspection with emacs -Q I get this
|
UPDATE: Solved issue by adding
LMFAO idk why Maybe please add |
Sorry for ignoring this issue. I think this is an existing issue for a long while. Function
I think the first point would be my best guess since isn't daemon has to be called from the command line? 😕 |
Hmm according to someone on doom-emacs discord (on help-nondoom-users channel) this hook seems to reproduce the bug Line 462 in 09290bf
|
You mean the |
Hmm seems like it |
Maybe try overriding the function (with-eval-after-load 'dashboard
(defun dashboard-setup-startup-hook ()
;;(when (< (length command-line-args) 2)
(add-hook 'after-init-hook (lambda ()
;; Display useful lists of items
(dashboard-insert-startupify-lists)))
(add-hook 'emacs-startup-hook (lambda ()
(switch-to-buffer dashboard-buffer-name)
(goto-char (point-min))
(redisplay)
(run-hooks 'dashboard-after-initialize-hook)))
;;)
)) place it in your |
this way? (with-eval-after-load 'dashboard
(defun dashboard-setup-startup-hook ()
;;(when (< (length command-line-args) 2)
(add-hook 'after-init-hook (lambda ()
;; Display useful lists of items
(dashboard-insert-startupify-lists)))
(add-hook 'emacs-startup-hook (lambda ()
(switch-to-buffer dashboard-buffer-name)
(goto-char (point-min))
(redisplay)
(run-hooks 'dashboard-after-initialize-hook)))
;;)
))
(use-package dashboard
:straight t
:config
(dashboard-setup-startup-hook)
)
(setq initial-buffer-choice (lambda () (get-buffer "*dashboard*"))) (the daemon still does not detach in this case) |
same problem here |
Same problem, on both Arch and NixOS |
same |
NixOS user here, sharing a bit more context that might be useful in debugging the issue. ;; command-line-args
("/nix/store/qr4p11zqxppr4r8jz0ypvra3jbsil07k-emacs-pgtk-native-comp-20220528.0/bin/emacs" "-l" "cl-loaddefs" "-l" "nix-generated-autoload") # ❯ tail $(which emacs)
newNativeLoadPath+=("")
fi
export EMACSLOADPATH="${newLoadPath[*]}"
export emacsWithPackages_siteLisp=/nix/store/z9ara8c5g37k7dj936418l0kkb50ajis-emacs-packages-deps/share/emacs/site-lisp
export EMACSNATIVELOADPATH="${newNativeLoadPath[*]}"
export emacsWithPackages_siteLispNative=/nix/store/z9ara8c5g37k7dj936418l0kkb50ajis-emacs-packages-deps/share/emacs/native-lisp:
exec /nix/store/qr4p11zqxppr4r8jz0ypvra3jbsil07k-emacs-pgtk-native-comp-20220528.0/bin/emacs -l cl-loaddefs -l nix-generated-autoload "$@" I think the assumption that user don't want to see dashboard when command line arguments are passed doesn't seem to play well with the newer changes at nix (or other) package level #23 |
Hi, I think there are two issues, need to change Line 457 in 34d1f97
if instead of when so the "proper" hook get added (I don't know why they are different hooks)
Try this config: (use-package dashboard
:ensure t
:init
(add-hook 'after-init-hook #'dashboard-insert-sartupify-lists)
:config
(setq initial-buffer-choice (lambda () (get-buffer-create "*dashboard*")))) Hope this helps. |
Hmm either using |
Okay, I encountered this in the normal client (no daemon) as well. I think the issue is emacs trying to pick up the Updated the documentation, in #382. |
What worked for me was replacing |
Hello, for some reason if I use
emacs --daemon
it fails to detach, does not return the prompt and does not properly start the client on using the latest git on emacs dashboardtried a minimal config as here
dashboard-test .el.txt
(github for some reason does not like .el so uploading as .txt)
EDIT
the command just hangs here
Notes:
emacsPgtkNativeComp Built on nixos unstable with home-manager at this commit nix-community/emacs-overlay@3244c10
The text was updated successfully, but these errors were encountered: