24 lines
1018 B
EmacsLisp
24 lines
1018 B
EmacsLisp
;;; $DOOMDIR/+ui.el -*- lexical-binding: t; -*-
|
|
|
|
(setq doom-font (font-spec :family "Jetbrains Mono" :size 13))
|
|
|
|
(setq doom-theme 'doom-gruvbox)
|
|
|
|
(menu-bar-mode +1) ; add back menu bar
|
|
|
|
(setq display-line-numbers-type 'relative) ; line numbers
|
|
|
|
;; slightly nicer default buffer names
|
|
(setq doom-fallback-buffer-name "► Doom"
|
|
+doom-dashboard-name "► Doom")
|
|
|
|
;; From Tecosaur's config: hide encoding when it's what's expected
|
|
(defun doom-modeline-conditional-buffer-encoding ()
|
|
"We expect the encoding to be LF UTF-8, so only show the modeline when this is not the case"
|
|
(setq-local doom-modeline-buffer-encoding
|
|
(unless (and (memq (plist-get (coding-system-plist buffer-file-coding-system) :category)
|
|
'(coding-category-undecided coding-category-utf-8))
|
|
(not (memq (coding-system-eol-type buffer-file-coding-system) '(1 2))))
|
|
t)))
|
|
(add-hook 'after-change-major-mode-hook #'doom-modeline-conditional-buffer-encoding)
|