refactor: how UI elements are disabled at startup
The default-frame-alist properties are only necessary for the scrollbar. The variables are enough for the rest. Also, no need to set x-gtk-use-symtem-tooltips if we're turning off tooltips anyway. Also moves the UI config that snuck its way into doom-start back to doom-ui.
This commit is contained in:
parent
0d7c3eaf24
commit
4a253757cb
2 changed files with 13 additions and 33 deletions
|
@ -106,21 +106,7 @@
|
|||
(setq selection-coding-system 'utf-8))
|
||||
|
||||
|
||||
;;; User interface
|
||||
;; GUIs are inconsistent across systems, will rarely match our active Emacs
|
||||
;; theme, and impose their shortcut key paradigms suddenly. Let's just avoid
|
||||
;; them altogether and have Emacs handle the prompting.
|
||||
(setq use-dialog-box nil)
|
||||
(when (bound-and-true-p tooltip-mode)
|
||||
(tooltip-mode -1))
|
||||
(eval-when! IS-LINUX
|
||||
(setq x-gtk-use-system-tooltips nil))
|
||||
|
||||
;; Favor vertical splits over horizontal ones, since monitors are trending
|
||||
;; toward wide rather than tall.
|
||||
(setq split-width-threshold 160
|
||||
split-height-threshold nil)
|
||||
|
||||
;;; Support for more file extensions
|
||||
;; Add support for additional file extensions.
|
||||
(dolist (entry '(("/\\.doom\\(?:rc\\|project\\|module\\|profile\\)\\'" . emacs-lisp-mode)
|
||||
("/LICENSE\\'" . text-mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue