enable mise, diminish global minor modes

This commit is contained in:
Grant Horner
2026-07-09 10:32:08 -04:00
parent 3a06999277
commit fd9a531571
2 changed files with 47 additions and 22 deletions

View File

@@ -6,12 +6,14 @@
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(custom-enabled-themes '(deeper-blue)) '(custom-enabled-themes '(deeper-blue))
'(package-selected-packages '(package-selected-packages
'(cape dart-mode diminish dumber-jump evil evil-collection '(apheleia cape dart-mode diminish dumber-jump evil evil-collection
exec-path-from-shell fish-mode ghostel jai-mode magit evil-surround exec-path-from-shell fish-mode ghostel
move-text multiple-cursors org-roam terraform-mode undo-tree jai-mode magit mise move-text multiple-cursors org-roam
yaml-mode yasnippet yasnippet-snippets)) pgmacs terraform-mode undo-tree yaml-mode yasnippet
yasnippet-snippets))
'(package-vc-selected-packages '(package-vc-selected-packages
'((jai-mode :url "https://github.com/valignatev/jai-mode.git")))) '((pgmacs :url "https://github.com/emarsden/pgmacs.git")
(jai-mode :url "https://github.com/valignatev/jai-mode.git"))))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.

57
init.el
View File

@@ -4,7 +4,7 @@
(package-initialize) (package-initialize)
(if (string= system-type "darwin") (if (string= system-type "darwin")
(set-frame-font "Berkeley Mono 16" nil t) (set-frame-font "Berkeley Mono 18" nil t)
(set-frame-font "BerkeleyMono 14" nil t)) (set-frame-font "BerkeleyMono 14" nil t))
(load-theme 'deeper-blue) (load-theme 'deeper-blue)
@@ -77,6 +77,7 @@
(add-hook 'before-save-hook 'delete-trailing-whitespace) (add-hook 'before-save-hook 'delete-trailing-whitespace)
(add-hook 'before-save-hook 'hgh/untabify-buffer) (add-hook 'before-save-hook 'hgh/untabify-buffer)
(if (file-exists-p custom-file) (if (file-exists-p custom-file)
(load-file custom-file)) (load-file custom-file))
@@ -90,7 +91,11 @@
(exec-path-from-shell-initialize) (exec-path-from-shell-initialize)
(use-package diminish) (use-package diminish
:demand t
:config
(diminish 'eldoc-mode)
(diminish 'completion-preview-mode))
(setq treesit-enabled-modes t) (setq treesit-enabled-modes t)
@@ -125,6 +130,7 @@
(evil-global-set-key 'normal (kbd "[d") #'flymake-goto-prev-error)) (evil-global-set-key 'normal (kbd "[d") #'flymake-goto-prev-error))
(use-package evil-collection (use-package evil-collection
:diminish 'evil-collection-unimpaired-mode
:after evil :after evil
:ensure t :ensure t
:custom :custom
@@ -137,6 +143,11 @@
(keymap-set compilation-mode-map "SPC" nil) (keymap-set compilation-mode-map "SPC" nil)
(keymap-set help-mode-map "SPC" nil)) (keymap-set help-mode-map "SPC" nil))
(use-package evil-surround
:ensure t
:config
(global-evil-surround-mode 1))
(use-package move-text (use-package move-text
:bind (("M-<down>" . 'move-text-down) :bind (("M-<down>" . 'move-text-down)
("M-j" . 'move-text-down) ("M-j" . 'move-text-down)
@@ -145,7 +156,7 @@
(use-package jai-mode (use-package jai-mode
:vc (:url "https://github.com/valignatev/jai-mode.git" :vc (:url "https://github.com/valignatev/jai-mode.git"
:rev :newest)) :rev :newest))
(use-package magit (use-package magit
:bind ("C-x g" . magit-status) :bind ("C-x g" . magit-status)
@@ -171,21 +182,21 @@
:config :config
(push (push
'(:language "jai" :type "function" '(:language "jai" :type "function"
:supports ("ag" "grep" "rg" "git-grep") :supports ("ag" "grep" "rg" "git-grep")
:regex "\\bJJJ\\s*::" :regex "\\bJJJ\\s*::"
:tests ("test ::")) :tests ("test ::"))
dumber-jump-find-rules) dumber-jump-find-rules)
(push (push
'(:language "jai" :type "variable" '(:language "jai" :type "variable"
:supports ("ag" "grep" "rg" "git-grep") :supports ("ag" "grep" "rg" "git-grep")
:regex "\\bJJJ\\s*(:|:\\s*=|::)" :regex "\\bJJJ\\s*(:|:\\s*=|::)"
:tests ("test: Type" "test : Type = Val" "test :: Val")) :tests ("test: Type" "test : Type = Val" "test :: Val"))
dumber-jump-find-rules) dumber-jump-find-rules)
(push (push
'(:language "jai" :type "type" '(:language "jai" :type "type"
:supports ("ag" "grep" "rg" "git-grep") :supports ("ag" "grep" "rg" "git-grep")
:regex "\\bJJJ\\s*::" :regex "\\bJJJ\\s*::"
:tests ("test ::")) :tests ("test ::"))
dumber-jump-find-rules)) dumber-jump-find-rules))
(use-package eglot (use-package eglot
@@ -205,14 +216,14 @@
(use-package fish-mode) (use-package fish-mode)
(use-package yasnippet (use-package yasnippet
:diminish t :diminish yas-minor-mode
:config :config
(yas-global-mode 1)) (yas-global-mode 1))
(use-package yasnippet-snippets) (use-package yasnippet-snippets)
(use-package undo-tree (use-package undo-tree
:diminish t :diminish undo-tree-mode
:custom :custom
(undo-tree-history-directory-alist `(,(cons "." (concat (file-name-directory user-init-file) "undo-tree")))) (undo-tree-history-directory-alist `(,(cons "." (concat (file-name-directory user-init-file) "undo-tree"))))
:config :config
@@ -250,4 +261,16 @@
:custom :custom
(ghostel-module-auto-install "download")) (ghostel-module-auto-install "download"))
(use-package terraform-mode) (use-package terraform-mode
:init
(setf (alist-get "\\.tfstate\\'" auto-mode-alist nil nil #'string=) 'json-ts-mode))
(use-package apheleia
:diminish apheleia-mode
:config
(apheleia-global-mode 1))
(use-package mise
:diminish mise-mode
:config
(global-mise-mode 1))