about summary refs log tree commit diff
path: root/emacs/wc-tabbar-functions.el
blob: 26ccf044a809fe77c9fe2f6778cc6b4bc5d5a5a2 (plain) (blame)
1
2
3
4
5
6
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)))