【Emacs】neotreeで別タブでファイルを開くときの設定

こうする。挙動がVSCodeに近くなると思われる。キーバインドはお好みで。

(defun neo-open-file-other-tab (full-path &optional arg)
  "Open a file node in another tab.

FULL-PATH is the file path you want to open."
  (neo-global--select-mru-window arg)
  (find-file-other-tab full-path)
  (neotree-toggle))

(with-eval-after-load "neotree"
  (define-key neotree-mode-map (kbd "f")
              (neotree-make-executor :file-fn 'neo-open-file-other-tab))
)