dotfiles/emacs/.emacs.d/config/init-ui.el
2021-02-26 16:47:28 -05:00

30 lines
765 B
EmacsLisp

;; -*- lexical-binding: t; -*-
;; Don't show ugly graphical UI elements
(when (window-system)
(tool-bar-mode -1)
(scroll-bar-mode -1)
(tooltip-mode -1))
;; Doom themes are the best themes!
(use-package doom-themes)
(use-package doom-modeline
:config
(doom-modeline-mode 1))
;; Load custom themes
(add-to-list 'custom-theme-load-path (expand-file-name "config/themes" user-emacs-directory))
;; A small package to hide the mode line
(use-package hide-mode-line
:commands hide-mode-line-mode)
;; A function to set the frame font
(defun set-font (font)
"Set the frame font to `font'"
(interactive (list (completing-read "Font: "
(delete-dups (font-family-list)))))
(set-frame-font font))
(provide 'init-ui)