Defines fn to conditionally activate emacs tabbar
This commit is contained in:
parent
3cc2f2bf62
commit
84789f0c33
1 changed files with 7 additions and 0 deletions
7
emacs/wc-tabbar-functions.el
Normal file
7
emacs/wc-tabbar-functions.el
Normal file
|
@ -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)))
|
Loading…
Reference in a new issue