2022-06-12 14:13:22 -04:00
|
|
|
;;; $DOOMDIR/+ui.el -*- lexical-binding: t; -*-
|
2022-03-07 15:09:04 -05:00
|
|
|
|
2022-03-30 22:49:49 -04:00
|
|
|
(setq doom-font (font-spec :family "Jetbrains Mono" :size 13))
|
2022-03-07 15:09:04 -05:00
|
|
|
|
|
|
|
(setq doom-theme 'doom-gruvbox)
|
|
|
|
|
|
|
|
(menu-bar-mode +1) ; add back menu bar
|
2022-03-08 09:38:58 -05:00
|
|
|
|
2022-06-12 14:13:22 -04:00
|
|
|
(setq display-line-numbers-type 'relative) ; line numbers
|
|
|
|
|
2022-03-08 09:38:58 -05:00
|
|
|
;; slightly nicer default buffer names
|
|
|
|
(setq doom-fallback-buffer-name "► Doom"
|
|
|
|
+doom-dashboard-name "► Doom")
|
|
|
|
|
2022-06-13 09:35:59 -04:00
|
|
|
;; pop-ups
|
|
|
|
(setq which-key-idle-delay 0.25)
|
|
|
|
(setq company-idle-delay 0.1)
|
|
|
|
|
|
|
|
;; centaur tabs issue: https://github.com/ema2159/centaur-tabs/issues/181
|
|
|
|
(after! centaur-tabs
|
|
|
|
(centaur-tabs-group-by-projectile-project))
|
|
|
|
|
|
|
|
;; From Tecosaur's config: hide encoding in modeline if usual
|
2022-03-08 09:38:58 -05:00
|
|
|
(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)
|
2022-06-13 09:35:59 -04:00
|
|
|
|
|
|
|
;; Also from Tecosaur's config (modified slightly): better window title
|
|
|
|
(setq frame-title-format
|
|
|
|
'(""
|
|
|
|
"%b" ; removed the org-roam part
|
|
|
|
(:eval
|
|
|
|
(let ((project-name (projectile-project-name)))
|
|
|
|
(unless (string= "-" project-name)
|
|
|
|
(format (if (buffer-modified-p) " ◉ %s" " ● %s") project-name))))))
|
2022-06-22 22:21:47 -04:00
|
|
|
|
|
|
|
;; emoji: Work around https://github.com/iqbalansari/emacs-emojify/issues/100
|
|
|
|
(setq emojify-download-emojis-p t)
|