Spacemacs Tabbar復活

以前のtabbarの設定が機能していないのでネット検索した。

Spacemacstabbarを参考に設定を見直した。

 

git clone

https://github.com/evacchi/tabbar-layer ~/.emacs.d/private/tabbar

(前に配置した同名ファイルを削除。後)これを再実行。

 

設定での大きな誤りを以下の様に修正した。

1. dotspacemacs/layers関数内

dotspacemacs-configuration-layers

tabbarを「リスト」の前に移動させた。

(エラー:void b が出ていたが、此の表示が出なくなった)

2. 以下の指定を止めた。

;; tabbar

(add-to-list 'load-path "~/.emacs.d/private/tabbar")

(require 'tabbar)

(tabbar-mode 1)

 

3.  Spacemacstabbarでの設定をそのまま流用!!

3- 1 dotspacemacs/user-init に追加。

3 -2 dotspacemacs/user-config に追加

 

 

4. SPC f e R で設定をリロードして設定の確認!!

 

4. TABが以前の様な色分けになる様に追記。

; 外観変更

(set-face-attribute

 'tabbar-default nil

 :family "MeiryoKe_Gothic"

 :background "#1e2730";;"#34495E"

 :foreground "#fff"

 :bold nil

 :height 0.95

 )

(set-face-attribute

 'tabbar-unselected nil

 :background "#34495E"

 :foreground "#fff"

 :bold nil

 :box nil

)

(set-face-attribute

 'tabbar-modified nil

 :background "#E67E22"

 :foreground "gray23"

 :bold t

 :box nil

)

(set-face-attribute

 'tabbar-selected nil

 :background "#8C1D11" ;;"#E74C3C"

 :foreground "#fff"

 :bold nil

 :box nil)

(set-face-attribute

 'tabbar-button nil

 :box nil)

(set-face-attribute

 'tabbar-separator nil

 :height 1.0 

)

 

今までtabbar-modeが機能しなかった

最大の原因は『3 - 1 user-init』へのtabbarの設定を

忘れていたこと!!

dotspacemacs/layers ---> dotspacemacs/user-config

ここだけに気を取られていました。

『読み込まれる前に『3 - 1 user-init』の定義をしておかないと

設定が反映されない』ここでの『ご指摘どおり』でした。

 

『二畳半堂』さん。貴重な書き込み有り難うございます。

 

【追記】

Tab移動のキーバインド追加

(global-set-key [(meta j)] 'tabbar-forward)

(global-set-key [(meta k)] 'tabbar-backward)