From 4d3e84242c389cd1a259b401ff1a97677f780e5e Mon Sep 17 00:00:00 2001 From: tavo-wasd Date: Tue, 2 Jul 2024 07:41:50 -0600 Subject: [PATCH] clean startup --- emacs/init.el | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/emacs/init.el b/emacs/init.el index 3de9690..59f5b75 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -13,6 +13,8 @@ ;; --- ;; --- Preferences --- +(defun display-startup-echo-area-message () + (message nil)) (setq custom-file (concat user-emacs-directory "custom.el")) (load custom-file 'noerror) (setq warning-minimum-level :error) @@ -131,16 +133,19 @@ (centaur-tabs-mode t) :bind ("C-" . centaur-tabs-backward) - ("C-" . centaur-tabs-forward) - :hook ((dashboard-mode . centaur-tabs-local-mode) - (pdf-view-mode . centaur-tabs-local-mode))) + ("C-" . centaur-tabs-forward)) (setq centaur-tabs-cycle-scope 'tabs) (setq centaur-tabs-set-modified-marker t) (setq centaur-tabs-modified-marker "*"))) +(add-hook 'pdf-view-mode-hook 'centaur-tabs-local-mode) +(add-hook 'dashboard-mode-hook 'centaur-tabs-local-mode) + (defun my/hide-modeline () (setq-local mode-line-format nil)) +(add-hook 'dashboard-mode-hook 'my/hide-modeline) + (if (eq system-type 'android) (message "Android device, ignoring org-mode-visual-fill") ;; Android (progn ;; Everywhere else