diff --git a/modules/home/doom/doom.nix b/modules/home/doom/doom.nix index de909f9..0b6a7bf 100644 --- a/modules/home/doom/doom.nix +++ b/modules/home/doom/doom.nix @@ -43,7 +43,7 @@ doom-socket-name = "main"; wrapped-emacs = pkgs.symlinkJoin { name = "wrapped-emacs"; - paths = [pkgs.emacs29-pgtk]; + paths = [pkgs.emacs29]; nativeBuildInputs = [pkgs.makeBinaryWrapper]; postBuild = '' wrapProgram $out/bin/emacs \ diff --git a/modules/home/doom/static/config.el b/modules/home/doom/static/config.el index 258c99e..7eb5b08 100644 --- a/modules/home/doom/static/config.el +++ b/modules/home/doom/static/config.el @@ -139,13 +139,11 @@ (defun my-ui-doc-glance-then-focus () "Glances UI-Doc if not present, otherwise focus" (interactive) - (if (lsp-ui-doc--frame-visible-p) - (progn - (lsp-ui-doc-hide) - (lsp-ui-doc-show) - (lsp-ui-doc-focus-frame)) + (if (lsp-ui-doc--visible-p) + (lsp-ui-doc-focus-frame) (lsp-ui-doc-glance))) + (map! :map (cpp-mode-map c-mode-map c++-mode-map lsp-mode-map) :desc "Show Doc-UI" :n "C-h" #'my-ui-doc-glance-then-focus)