Emacs: Add keybindings for tab-bar and enable tab-line.

This commit is contained in:
tastytea 2019-12-26 21:30:46 +01:00
parent f6d78a531f
commit ee01e1a8d3
2 changed files with 26 additions and 3 deletions

View File

@ -1,6 +1,6 @@
;;; ui.el --- Configure user interfaces. -*- lexical-binding: t; -*-
;; Time-stamp: <2019-12-23T00:13:17+00:00>
;; Time-stamp: <2019-12-26T21:30:02+0100>
;;; Commentary:
;; * treemacs
@ -146,5 +146,28 @@
(:face font-lock-comment-face)))))))
)
;; Switch between named persistent window configurations.
(when (>= emacs-major-version 27)
(use-package tab-bar
:bind
("C-<prior>" . tab-bar-switch-to-prev-tab)
("C-<next>" . tab-bar-switch-to-next-tab)
))
;; Shows tabs of all visible buffers per window.
(when (>= emacs-major-version 27)
(use-package tab-line
:custom-face
(tab-line ((t (:inherit ruler-mode-default))))
(tab-line-tab ((t (:inherit ruler-mode-default))))
(tab-line-tab-inactive ((t (:inherit tab-line-tab))))
(tab-line-tab-current ((t (:inherit tab-line-tab
:background "grey10"
:foreground "grey70"))))
:hook
(find-file . tab-line-mode)
))
(provide 'basics/ui)
;;; ui.el ends here

View File

@ -1,6 +1,6 @@
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
;; Time-stamp: <2019-12-26T06:24:21+00:00>
;; Time-stamp: <2019-12-26T20:41:06+0100>
;;; Commentary:
@ -177,7 +177,7 @@
;; Fold code.
(use-package fold-dwim
:bind
("C-x t" . fold-dwim-toggle)
("C-c f" . fold-dwim-toggle)
:hook
(prog-mode . hs-minor-mode)