From f14028123c66dcab4d18568edeb077eea061f0c4 Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Tue, 19 Nov 2024 13:07:38 +0700 Subject: [PATCH] Separating the UI setup --- init.el | 2 +- lisp/setup-ui.el | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 lisp/setup-ui.el diff --git a/init.el b/init.el index cd28e5c..32fced7 100644 --- a/init.el +++ b/init.el @@ -1,6 +1,6 @@ (add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory)) (load-file (expand-file-name "setup-packages.el" (concat user-emacs-directory "lisp"))) - +(load-file (expand-file-name "setup-ui.el" (concat user-emacs-directory "lisp"))) (custom-set-variables ;; custom-set-variables was added by Custom. diff --git a/lisp/setup-ui.el b/lisp/setup-ui.el new file mode 100644 index 0000000..d5736ee --- /dev/null +++ b/lisp/setup-ui.el @@ -0,0 +1,4 @@ +(tab-bar-mode 1) +(setq tab-bar-show 1) ;; Show the tab bar only when more than one tab exists. +(global-display-line-numbers-mode t) +(add-hook 'treemacs-mode-hook (lambda () (display-line-numbers-mode 0))) ; Disable line numbers for Treemacs