From 562c48cea9be24968e5bbf76245251b9b1486c21 Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Mon, 10 Oct 2022 22:41:15 -0700 Subject: [PATCH] Tab-related stuff --- thoom-emacs/ThoomEmacs.org | 9 +++++++++ thoom-emacs/init.el | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/thoom-emacs/ThoomEmacs.org b/thoom-emacs/ThoomEmacs.org index 9e59c28..aaa0295 100644 --- a/thoom-emacs/ThoomEmacs.org +++ b/thoom-emacs/ThoomEmacs.org @@ -108,6 +108,10 @@ Set some common settings, like global-auto-revert-mode. ;; TODO - Decide whether to enable this ;; (defalias 'yes-or-no-p 'y-or-n-p) + +;; tabs are for monsters +(setq-default indent-tabs-mode nil) +(setq-default tab-width 4) #+END_SRC ** hl-todo #+begin_src emacs-lisp @@ -178,9 +182,14 @@ Set a location for the custom file so it doesn't pollute this file. ;; Tab management ("C-c w t c" . tab-bar-new-tab) + ("C-c w t r" . tab-rename) ("C-c w t d" . tab-bar-close-tab) ("C-c w t n" . tab-bar-switch-to-next-tab) ("C-c w t p" . tab-bar-switch-to-prev-tab) + ;; Mac keybindings for tab management + ("s-t" . tab-bar-new-tab) + ("s-}" . tab-bar-switch-to-next-tab) + ("s-{" . tab-bar-switch-to-prev-tab) ;; Common keybindings with tab switching in browsers, for use with my mouse bindings ("C-" . tab-bar-switch-to-next-tab) ("C-" . tab-bar-switch-to-prev-tab) diff --git a/thoom-emacs/init.el b/thoom-emacs/init.el index b635e3b..88b2cc1 100644 --- a/thoom-emacs/init.el +++ b/thoom-emacs/init.el @@ -82,6 +82,10 @@ ;; TODO - Decide whether to enable this ;; (defalias 'yes-or-no-p 'y-or-n-p) +;; tabs are for monsters +(setq-default indent-tabs-mode nil) +(setq-default tab-width 4) + (use-package hl-todo :straight t :init @@ -132,9 +136,14 @@ ;; Tab management ("C-c w t c" . tab-bar-new-tab) + ("C-c w t r" . tab-rename) ("C-c w t d" . tab-bar-close-tab) ("C-c w t n" . tab-bar-switch-to-next-tab) ("C-c w t p" . tab-bar-switch-to-prev-tab) + ;; Mac keybindings for tab management + ("s-t" . tab-bar-new-tab) + ("s-}" . tab-bar-switch-to-next-tab) + ("s-{" . tab-bar-switch-to-prev-tab) ;; Common keybindings with tab switching in browsers, for use with my mouse bindings ("C-" . tab-bar-switch-to-next-tab) ("C-" . tab-bar-switch-to-prev-tab)