Compare commits

..

2 Commits

2 changed files with 14 additions and 17 deletions

13
init.el
View File

@ -336,7 +336,6 @@ If the current window occupies the whole frame, split it."
;; (add-hook 'after-init-hook #'mir/graphical-setup)
)
(use-package compat)
(use-package marginalia :init (marginalia-mode))
;; (elpaca gcmh (gcmh-mode))
@ -348,8 +347,8 @@ If the current window occupies the whole frame, split it."
(use-package powershell
:mode ("\\.ps1\\'" . powershell-mode))
;; (message "%s" elpaca--queues)
(if (fboundp #'elpaca) (elpaca-wait))
;; (message "elpaca queues: %s" elpaca--queues)
;; (if (fboundp #'elpaca) (elpaca-wait))
;; diminish
(use-package diminish
@ -361,8 +360,14 @@ If the current window occupies the whole frame, split it."
:custom (default-input-method "japanese")
:config (require 'mir-keybinds))
;;(if (fboundp #'elpaca) (elpaca-wait))
(use-package eldoc :ensure t)
(elpaca-wait)
;;(when (featurep 'eldoc)
;; (unload-feature 'eldoc t))
;; (elpaca eldoc
;; )
;; (elpaca-wait)
(use-package eldoc-box
:after eldoc
:diminish (eldoc-mode eldoc-box-hover-at-point-mode)

View File

@ -66,19 +66,11 @@ console."
(pixel-scroll-precision-mode t)
(pixel-scroll-mode t))
;; Size of text. おまえ わ もう しんでいる.
;; (if (executable-find "neofetch")
;; (let* ((resolution (mapcar #'string-to-number
;; (split-string
;; (cadr (split-string
;; (shell-command-to-string
;; "neofetch resolution"))) "x")))
;; (resx (car resolution))
;; (resy (cadr resolution))
;; (font-height (/ resy 11)))
;; (set-face-attribute 'fixed-pitch nil :height font-height)
;; (set-face-attribute 'default nil :height font-height)
;; (set-face-attribute 'variable-pitch nil :height (+ font-height 10))))
)
(let* ((resy (display-pixel-height))
(font-height (/ resy 8))) ; gonna be different on diff machines 💀
(set-face-attribute 'fixed-pitch nil :height font-height)
(set-face-attribute 'default nil :height font-height)
(set-face-attribute 'variable-pitch nil :height (+ font-height 10))))
(defun toggle-ja-input ()
"Switch between english and japanese. Not broken."