diff options
Diffstat (limited to '.config/emacs/modules/bd--tabs.el')
-rw-r--r-- | .config/emacs/modules/bd--tabs.el | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/.config/emacs/modules/bd--tabs.el b/.config/emacs/modules/bd--tabs.el index 533ce1a..d1efe5e 100644 --- a/.config/emacs/modules/bd--tabs.el +++ b/.config/emacs/modules/bd--tabs.el @@ -1,18 +1,18 @@ ;; -*- lexical-binding: t; -*- -;; turn tabs on, undo/redo mode +;;;; turn tabs on, undo/redo mode (setq tab-bar-show 1) (tab-bar-history-mode) -;; remove useless gui elements +;;;; remove useless gui elements (setopt tab-bar-format '(tab-bar-format-tabs) tab-bar-close-button-show nil) -;; bind tabs to 'Meta' like other applications +;;;; bind tabs to 'Meta' like other applications (mapcar (lambda (i) (keymap-global-set (format "M-%d" i) (lambda () @@ -21,7 +21,7 @@ (number-sequence 0 9)) -;; use project name if it exists +;;;; use project name if it exists (defun bd/tab-bar-name-function () (let ((project (project-current))) (if project @@ -43,5 +43,8 @@ (setq tab-bar-tab-name-function #'bd/tab-bar-name-function) +;;;; less tabbing; more hacking +(desktop-save-mode 1) + (provide 'bd--tabs) |