How can I create a command to always move focus to a specific window/buffer reddit / emacs ---------------------------------------------------------------------- thiscarhasfourtires · 2022-03-09 20:32 I'd like to have a command which always moved the focus that a window named `*org-roam*`, regardless of position or amount of windows currently at the display. How can I do that? I'm using Doom Emacs, if that's relevant. Thanks! ---------------------------------------------------------------------- nv-elisp · 2022-03-09 21:22 Look into `pop-to-buffer`, `pop-to-buffer-same-window`, and how they interact with `display-buffer-alist`. ---------------------------------------------------------------------- thiscarhasfourtires · 2022-03-09 23:40 This works fine, thanks! Just added this to my Doom init: (map! :map (org-mode-map evil-org-mode-map) :nvieg "M-ç" (lambda () (interactive) (pop-to-buffer "*org-roam*")))