Some changes

This commit is contained in:
Alexander Rosenberg 2024-01-04 00:14:49 -08:00
parent 4c2d2a00b8
commit ca814209d3
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

10
init.el
View File

@ -496,7 +496,7 @@ visual states."
(use-package eldoc (use-package eldoc
:diminish eldoc-mode :diminish eldoc-mode
:init :init
(setq-default eldoc-echo-area-use-multiline-p 'truncate-sym-name-if-fit)) (setq-default eldoc-echo-area-use-multiline-p nil))
;; eglot ;; eglot
(use-package eglot (use-package eglot
@ -530,8 +530,7 @@ visual states."
(switch-to-buffer-other-window buff t))))))))) (switch-to-buffer-other-window buff t)))))))))
(defun my/-eglot-setup () (defun my/-eglot-setup ()
"Setup eldoc variables for `eglot-managed-mode-hook'." "Setup eldoc variables for `eglot-managed-mode-hook'."
(setq-local eldoc-echo-area-use-multiline-p nil (setq-local evil-lookup-func #'my/eglot-documentation-at-point)
evil-lookup-func #'my/eglot-documentation-at-point)
(evil-define-key '(normal motion) 'local (evil-define-key '(normal motion) 'local
"K" #'evil-lookup "K" #'evil-lookup
"gR" #'eglot-rename "gR" #'eglot-rename
@ -1117,7 +1116,8 @@ If no name is given, list all bookmarks instead."
:ensure nil :ensure nil
:defer nil :defer nil
:hook ((mu4e-index-updated . my/-mu4e-enable-index-messages) :hook ((mu4e-index-updated . my/-mu4e-enable-index-messages)
(mu4e-main-mode . my/-mu4e-setup-main-mode)) (mu4e-main-mode . my/-mu4e-setup-main-mode)
(mu4e-view-mode . my/-mu4e-setup-view-mode))
:bind (("C-x C-m" . mu4e) :bind (("C-x C-m" . mu4e)
("C-x m" . mu4e-compose-new) ("C-x m" . mu4e-compose-new)
:map message-mode-map :map message-mode-map
@ -1125,6 +1125,8 @@ If no name is given, list all bookmarks instead."
:init :init
(require 'mu4e) (require 'mu4e)
(evil-define-key '(normal motion) mu4e-main-mode-map "q" #'bury-buffer) (evil-define-key '(normal motion) mu4e-main-mode-map "q" #'bury-buffer)
(defun my/-mu4e-setup-view-mode ()
(setq global-hl-line-mode nil))
(defun my/-mu4e-setup-main-mode () (defun my/-mu4e-setup-main-mode ()
(setq-local default-directory "~/")) (setq-local default-directory "~/"))
(defun my/-mu4e-enable-index-messages () (defun my/-mu4e-enable-index-messages ()