Re-organize emacs main settings

This commit is contained in:
Charlotte Van Petegem 2021-05-06 14:09:35 +02:00
parent beadab42b8
commit 2993063434
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -101,15 +101,14 @@
:ensure nil ;; Not a real package, but a place to collect global settings
:hook
;; Always display line numbers for text-based modes
(text-mode . display-line-numbers-mode)
:custom
(inhibit-startup-screen t "Don't show default startup screen")
:config
((text-mode prog-mode) . display-line-numbers-mode)
;; Enable basic auto pairs. Maybe replace this with something more
;; advanced later? Look into configuring pairs for frequently used
;; major modes.
(electric-pair-mode)
((text-mode prog-mode) . electric-pair-mode)
:custom
(inhibit-startup-screen t "Don't show default startup screen")
:config
;; Only ask for y/n, never for yes/no.
(defalias 'yes-or-no-p 'y-or-n-p)