From 2bab49a2e44efac59f44370a9a9b1aa05255ae57 Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Mon, 30 Sep 2024 09:20:26 +0700 Subject: [PATCH] Emacs: WIP joe/beframe-switch-and-unassume --- .config/emacs/init.org | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.config/emacs/init.org b/.config/emacs/init.org index 28280b8..8f7638a 100644 --- a/.config/emacs/init.org +++ b/.config/emacs/init.org @@ -1162,6 +1162,14 @@ Ace Window will show a hint if there are more than 2 windows, but I don't really (add-to-list 'consult-buffer-sources 'beframe-consult-source)) (setq beframe-create-frame-scratch-buffer nil) (beframe-mode +1) + +(defun joe/beframe-switch-and-unassume () + (interactive) + (let ((curr (current-buffer))) + (mode-line-other-buffer) + (beframe-unassume-current-frame-buffers-selectively '(curr)))) +(evil-global-set-key 'normal (kbd "SPC b f") #'joe/beframe-switch-and-unassume) + #+end_src *** Popper #+begin_src emacs-lisp @@ -2337,6 +2345,7 @@ These help speed eglot up apparently [[https://www.reddit.com/r/emacs/comments/1 #+begin_src emacs-lisp (add-to-list 'auto-mode-alist '("\\.vert\\'" . shader-mode)) (add-to-list 'auto-mode-alist '("\\.frag\\'" . shader-mode)) +(add-to-list 'auto-mode-alist '("\\.glsl\\'" . shader-mode)) #+end_src ** AI #+begin_src emacs-lisp