From 60a7e8a191d24fed23465b6b9e2ae44e70fa7207 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Wed, 23 Mar 2022 20:07:37 +0100 Subject: [PATCH] [Post/Using Emacs tab-bar-mode] Fixed wrong functions names --- content-org/blog.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content-org/blog.org b/content-org/blog.org index cb6cfe0..a038659 100644 --- a/content-org/blog.org +++ b/content-org/blog.org @@ -412,9 +412,9 @@ Yesterday I took some time to find a better solution for this problem and came u #+begin_src emacs-lisp (defun mmk2410/tab-bar-switch-or-create (name func) - (if (mmk2410/tab-exists name) + (if (mmk2410/tab-bar-tab-exists name) (tab-bar-switch-to-tab name) - (mmk2410/new-tab name func))) + (mmk2410/tab-bar-new-tab name func))) #+end_src In working through the problem I though that I essentially need some more or less abstract function that checks whether a tab with a given name already exists and, if not, creates one using a given function. =mmk2410/tab-bar-switch-or-create= does exactly this.