2021-02-21 02:59:11 +00:00
|
|
|
;; -*- lexical-binding: t; -*-
|
|
|
|
|
2024-08-12 20:31:11 +00:00
|
|
|
;; For some reason, the tool-bar-mode disabling in early-init.el was leaving the frame title too tall, so
|
|
|
|
;; toggle it on and off
|
|
|
|
(add-hook 'after-init-hook
|
|
|
|
(lambda ()
|
|
|
|
(tool-bar-mode)
|
|
|
|
(tool-bar-mode -1)))
|
2021-02-20 11:40:03 +00:00
|
|
|
|
2021-05-12 15:03:32 +00:00
|
|
|
(when (fboundp 'mac-auto-operator-composition-mode)
|
|
|
|
(setq mac-auto-operator-composition-characters
|
|
|
|
"!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
|
|
|
(mac-auto-operator-composition-mode))
|
|
|
|
|
2021-02-20 11:40:03 +00:00
|
|
|
;; Doom themes are the best themes!
|
|
|
|
(use-package doom-themes)
|
|
|
|
(use-package doom-modeline
|
2024-05-05 03:05:38 +00:00
|
|
|
:hook
|
|
|
|
(after-init . doom-modeline-mode)
|
2024-04-05 16:12:33 +00:00
|
|
|
:custom
|
2024-04-15 14:27:45 +00:00
|
|
|
(doom-modeline-env-version nil)
|
|
|
|
(doom-modeline-env-enable-python nil)
|
|
|
|
(doom-modeline-env-enable-ruby nil)
|
|
|
|
(doom-modeline-env-enable-perl nil)
|
|
|
|
(doom-modeline-env-enable-go nil)
|
|
|
|
(doom-modeline-env-enable-elixir nil)
|
|
|
|
(doom-modeline-env-enable-rust nil))
|
2021-02-20 11:40:03 +00:00
|
|
|
|
2021-02-20 23:24:00 +00:00
|
|
|
;; A small package to hide the mode line
|
|
|
|
(use-package hide-mode-line
|
|
|
|
:commands hide-mode-line-mode)
|
|
|
|
|
2021-02-26 21:47:28 +00:00
|
|
|
;; 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))
|
|
|
|
|
2021-04-15 19:26:56 +00:00
|
|
|
(defun text-scale-reset ()
|
|
|
|
(interactive)
|
|
|
|
(text-scale-increase 0))
|
|
|
|
|
|
|
|
(general-def
|
|
|
|
"C-c +" #'text-scale-increase
|
|
|
|
"C-c -" #'text-scale-decrease
|
|
|
|
"C-c 0" #'text-scale-reset)
|
|
|
|
|
2021-02-20 11:40:03 +00:00
|
|
|
(provide 'init-ui)
|