Disable menu-bar and tool-bar modes by default

This commit is contained in:
Evie Litherland-Smith 2024-06-15 09:02:18 +01:00
parent df06c39e52
commit 711bba450c

45
init.el
View file

@ -17,17 +17,31 @@
(when (and custom-file (file-exists-p custom-file))
(load custom-file nil 'nomessage))
(set-default-coding-systems 'utf-8)
(setq user-full-name "Evie Litherland-Smith"
user-mail-address "evie@xenia.me.uk"
inhibit-splash-screen t
use-short-answers t
load-prefer-newer t
even-window-sizes t
tab-always-indent 'complete
completion-cycle-threshold nil
completions-detailed t
kill-do-not-save-duplicates t)
(setopt scroll-conservatively 101)
(setq-default truncate-lines t
truncate-partial-width-windows nil)
(setopt indent-tabs-mode nil
async-shell-command-display-buffer nil
compilation-scroll-output t)
(global-prettify-symbols-mode +1)
(global-auto-revert-mode +1)
(delete-selection-mode +1)
(menu-bar-mode -1)
(tool-bar-mode -1)
(tab-bar-mode -1)
(scroll-bar-mode -1)
(use-package pixel-scroll
:init
@ -50,21 +64,6 @@
(async-shell-command "git-sync-all" "*git-sync-all*" "*git-sync-errors*"))
(keymap-global-set "C-c g s" #'my/git-sync-all)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(global-auto-revert-mode +1)
(delete-selection-mode +1)
(setopt
;; No tabs
indent-tabs-mode nil
;; Only display async output buffer when there's something to show
async-shell-command-display-buffer nil
;; Scroll compilation buffer output
compilation-scroll-output t)
;; Make shebang (#!) file executable when saved
(add-hook 'after-save-hook #'executable-make-buffer-file-executable-if-script-p)
@ -204,16 +203,6 @@
:init
(appt-activate +1))
(setq inhibit-splash-screen t)
(setq-default truncate-lines t
truncate-partial-width-windows nil)
(global-prettify-symbols-mode +1)
(global-display-line-numbers-mode -1)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(add-hook 'prog-mode-hook #'(lambda () (display-line-numbers-mode +1)))
(use-package which-key