mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-08-10 18:11:13 +10:00
Experimenting with using Emacs as a Rofi replacement; not working correctly--YET!
This commit is contained in:
+6
-11
@@ -51,17 +51,12 @@
|
||||
: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)))
|
||||
|
||||
;; 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))))
|
||||
;; 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))))
|
||||
|
||||
(use-package diminish)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user