mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-06-14 04:11:18 +00:00
Haha, disable pop ups
This commit is contained in:
parent
b4b5b87a2c
commit
d6b512821f
1 changed files with 16 additions and 0 deletions
|
|
@ -214,3 +214,19 @@
|
|||
:override
|
||||
#'my/exwm-input--fake-last-command)
|
||||
#+end_src
|
||||
* Disable Pop-ups mode
|
||||
#+begin_src emacs-lisp
|
||||
(defun my/pop-buffer-ignore-exwm (buffer &optional norecord)
|
||||
(not (eq 'exwm-mode
|
||||
(with-current-buffer buffer
|
||||
major-mode))))
|
||||
|
||||
(define-minor-mode exwm-disable-popups ""
|
||||
:global t
|
||||
(if exwm-disable-popups
|
||||
(advice-add #'pop-to-buffer-same-window
|
||||
:before-while
|
||||
#'my/pop-buffer-ignore-exwm)
|
||||
(advice-remove #'pop-to-buffer-same-window
|
||||
#'my/pop-buffer-ignore-exwm)))
|
||||
#+end_src
|
||||
|
|
|
|||
Loading…
Reference in a new issue