Experimenting with using Emacs as a Rofi replacement; not working correctly--YET!

This commit is contained in:
Derek Taylor
2026-01-01 18:47:59 -06:00
parent 42dd1caeca
commit b316fddf3e
5 changed files with 89 additions and 82 deletions

View File

@@ -142,17 +142,13 @@ Emacs Dashboard is an extensible startup screen showing you recent files, bookma
:config
(dashboard-setup-startup-hook))
(add-to-list 'display-buffer-alist
'("\\*launcher\\*" ;; Adjust to match your launcher's buffer name
(display-buffer-same-window)
(inhibit-same-window . nil)))
;; IMPORTANT: This allows us to use our custom Emacs launchers
;; without getting the annoying second window created.
(setq display-buffer-alist
'(("^\\(\\*.*\\*\\|Dashboard\\)$"
(display-buffer-no-window)
(allow-no-window . t))))
;; Force the frame to strictly have one window
(add-hook 'server-after-make-frame-hook
(lambda ()
(when (equal (frame-parameter nil 'name) "launcher")
(set-window-dedicated-p (selected-window) t)
(delete-other-windows))))
#+end_src
* DIMINISH