From bafaf4a10d282fab68d3e1974f103f28f6f00560 Mon Sep 17 00:00:00 2001 From: bd Date: Sun, 31 Mar 2024 01:13:13 -0600 Subject: Move autoremove/desktop configuration, other minor cleanup --- .config/emacs/modules/bd--tabs.el | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to '.config/emacs/modules/bd--tabs.el') 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) -- cgit v1.2.3