diff options
Diffstat (limited to 'emacs/wc-tabbar-functions.el')
-rw-r--r-- | emacs/wc-tabbar-functions.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/emacs/wc-tabbar-functions.el b/emacs/wc-tabbar-functions.el new file mode 100644 index 000000000000..26ccf044a809 --- /dev/null +++ b/emacs/wc-tabbar-functions.el @@ -0,0 +1,7 @@ +;;; Code +(defun wc/conditionally-activate-tabbar () + "Only activate tabbar-mode if the new major-mode is whitelisted." + (setq tabbar-whitelist '(prog-mode)) + (if (memq major-mode tabbar-whitelist) + (tabbar-local-mode 1) + (tabbar-local-mode nil))) |