2022-06-19 14:13:36 -08:00
|
|
|
|
;;; mitch-packages --- Declare and configure use-package statements
|
|
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
;; -----------------------------------------------------------------------------
|
|
|
|
|
;; This is a file in which I put declarations for packages and things.
|
|
|
|
|
;; -----------------------------------------------------------------------------
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package emacs
|
|
|
|
|
:elpaca nil
|
|
|
|
|
:custom
|
|
|
|
|
(scroll-margin 2)
|
|
|
|
|
(scroll-conservatively 100)
|
|
|
|
|
(scroll-up-aggressively 0.01)
|
|
|
|
|
(scroll-down-aggressively 0.01)
|
|
|
|
|
(auto-window-vscroll nil)
|
|
|
|
|
:init
|
|
|
|
|
(global-visual-line-mode t)
|
|
|
|
|
(set-language-environment "UTF-8")
|
2023-03-08 09:39:15 -09:00
|
|
|
|
(global-prettify-symbols-mode 1)
|
|
|
|
|
(auto-insert-mode))
|
2023-01-04 13:19:44 -09:00
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package compat)
|
2022-11-15 10:47:59 -09:00
|
|
|
|
|
|
|
|
|
;; save minibuffer history, see Vertico below
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package savehist
|
|
|
|
|
:elpaca nil
|
2022-09-24 18:59:24 -08:00
|
|
|
|
:init (savehist-mode)
|
|
|
|
|
:custom (savehist-file
|
|
|
|
|
(expand-file-name "minibuffer-history" backup-directory)))
|
2022-11-15 10:49:15 -09:00
|
|
|
|
|
2022-10-07 19:37:49 -08:00
|
|
|
|
;; save place in all files
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package saveplace
|
|
|
|
|
:elpaca nil
|
2022-09-07 06:09:59 -08:00
|
|
|
|
:init (save-place-mode t)
|
|
|
|
|
:custom
|
|
|
|
|
(save-place-file
|
2022-10-07 19:37:49 -08:00
|
|
|
|
(expand-file-name "file-position-save" backup-directory)))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package tramp
|
|
|
|
|
:elpaca nil
|
2022-12-18 20:38:34 -09:00
|
|
|
|
;; :after eshell
|
2022-09-24 19:02:11 -08:00
|
|
|
|
:custom (tramp-persistency-file-name
|
2023-01-25 10:48:11 -09:00
|
|
|
|
(expand-file-name "tramp-history" backup-directory))
|
|
|
|
|
:config
|
|
|
|
|
(defun find-file-sudo (&rest throwaway)
|
|
|
|
|
(unless (and buffer-file-name
|
|
|
|
|
(file-writable-p buffer-file-name))
|
|
|
|
|
(find-alternate-file (concat "/sudo:root@localhost:" buffer-file-name))))
|
|
|
|
|
(advice-add #'find-file :after #'find-file-sudo))
|
2022-08-27 21:47:33 -08:00
|
|
|
|
;; Visualize whitespace. In a very chill and invisible way.
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package image-mode
|
|
|
|
|
:elpaca nil
|
2022-07-16 17:55:54 -08:00
|
|
|
|
:config
|
|
|
|
|
(turn-off-line-numbers)
|
|
|
|
|
(blink-cursor-mode -1))
|
2022-06-19 14:13:36 -08:00
|
|
|
|
|
2023-01-25 15:12:13 -09:00
|
|
|
|
;; scribble SVGs in org buffers like it's 2005 (idk I was a baby then)
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package edraw
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:elpaca (:repo "https://github.com/misohena/el-easydraw")
|
2023-01-25 15:12:13 -09:00
|
|
|
|
:after org
|
|
|
|
|
:config
|
|
|
|
|
(require 'edraw-org)
|
2023-03-08 08:58:30 -09:00
|
|
|
|
(edraw-org-setup-default)
|
|
|
|
|
;; following function taken from https://github.com/wn/doom.d/blob/46ca46f2ef21e933fb76b1568be1a62b262ed288/config.el#L47
|
|
|
|
|
(defun org-mode-open-edraw (&optional filename)
|
|
|
|
|
(interactive)
|
|
|
|
|
(let ((filename (or filename
|
|
|
|
|
(concat "./"
|
|
|
|
|
(file-relative-name
|
|
|
|
|
(read-file-name (edraw-msg "Write svg file: ")
|
|
|
|
|
default-directory)
|
|
|
|
|
default-directory)))))
|
|
|
|
|
(insert (format "[[edraw:file=%s]]" filename))
|
|
|
|
|
(backward-char)
|
|
|
|
|
(org-return))))
|
2023-01-25 15:12:13 -09:00
|
|
|
|
|
2023-03-08 08:58:30 -09:00
|
|
|
|
|
2022-08-24 19:27:47 -08:00
|
|
|
|
|
2023-03-06 08:11:08 -09:00
|
|
|
|
;; diminish
|
|
|
|
|
(use-package diminish)
|
2022-06-19 14:13:36 -08:00
|
|
|
|
;; Keybinding manager
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package general
|
|
|
|
|
:demand t
|
2023-01-04 13:27:42 -09:00
|
|
|
|
:custom (default-input-method "japanese")
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:config (mitch/general-config))
|
2023-03-07 08:26:54 -09:00
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(elpaca-wait)
|
2022-06-19 14:13:36 -08:00
|
|
|
|
|
2023-03-06 08:11:08 -09:00
|
|
|
|
(use-package eldoc
|
|
|
|
|
:elpaca nil
|
|
|
|
|
:diminish
|
|
|
|
|
:custom (eldoc-echo-area-use-multiline-p nil))
|
|
|
|
|
(use-package whitespace
|
|
|
|
|
:elpaca nil
|
|
|
|
|
:diminish (whitespace-mode org-indent-mode org-vw-mode auto-fill-mode)
|
|
|
|
|
:custom
|
|
|
|
|
(whitespace-style '(face lines-tail))
|
|
|
|
|
(whitespace-line-column 80)
|
|
|
|
|
(fill-column 80)
|
|
|
|
|
:hook
|
|
|
|
|
(prog-mode . whitespace-mode)
|
2023-03-11 09:39:27 -09:00
|
|
|
|
;; (org-mode . auto-fill-mode)
|
|
|
|
|
)
|
2023-03-06 08:11:08 -09:00
|
|
|
|
;; ...and finally, sync files with disk changes
|
|
|
|
|
(use-package autorevert
|
|
|
|
|
:elpaca nil
|
|
|
|
|
:diminish auto-revert-mode
|
|
|
|
|
:config (global-auto-revert-mode))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
;; (use-package use-package-ensure-system-package)
|
2022-09-30 12:51:08 -08:00
|
|
|
|
|
2022-06-19 14:13:36 -08:00
|
|
|
|
;; load evil
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package evil
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:general
|
2022-10-09 11:52:06 -08:00
|
|
|
|
;; Visual lines. Redefined for auto-scrolling madness.
|
2022-06-19 14:13:36 -08:00
|
|
|
|
(general-define-key
|
|
|
|
|
:states 'normal
|
|
|
|
|
"<escape>" 'evil-beginning-of-line
|
2022-10-12 15:26:40 -08:00
|
|
|
|
"j" 'evil-next-visual-line
|
|
|
|
|
"k" 'evil-previous-visual-line
|
2022-10-10 12:16:37 -08:00
|
|
|
|
"C-n" 'move-screen-up-line
|
|
|
|
|
"C-p" 'move-screen-down-line)
|
2022-06-19 14:13:36 -08:00
|
|
|
|
(general-define-key
|
|
|
|
|
:states 'insert
|
|
|
|
|
"C-w" 'evil-window-map
|
|
|
|
|
"C-V" (general-key-dispatch
|
2022-07-05 20:56:48 -08:00
|
|
|
|
'evil-quoted-insert
|
|
|
|
|
"u" 'insert-char))
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:diminish visual-line-mode
|
|
|
|
|
:custom
|
2023-03-06 11:05:29 -09:00
|
|
|
|
(echo-keystrokes 0.5)
|
2022-06-19 14:13:36 -08:00
|
|
|
|
(evil-want-integration t)
|
|
|
|
|
(evil-want-keybinding nil)
|
|
|
|
|
(evil-want-C-u-scroll nil)
|
|
|
|
|
(evil-want-C-i-jump nil)
|
|
|
|
|
(evil-vsplit-window-right t)
|
|
|
|
|
(evil-split-window-below t)
|
|
|
|
|
(evil-undo-system
|
|
|
|
|
(if (>= (string-to-number emacs-version) 28)
|
|
|
|
|
(quote undo-redo)
|
|
|
|
|
(quote undo-fu)))
|
2022-10-14 11:43:01 -08:00
|
|
|
|
:init (evil-mode t)
|
|
|
|
|
:config (mitch/evil-config))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package evil-collection
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:after evil
|
|
|
|
|
:diminish evil-collection-unimpaired-mode
|
|
|
|
|
:config (evil-collection-init))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package evil-commentary
|
2023-03-06 11:06:22 -09:00
|
|
|
|
:after evil
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:diminish 'evil-commentary-mode
|
|
|
|
|
:config (evil-commentary-mode)
|
2022-06-22 06:41:28 -08:00
|
|
|
|
:hook (prog-mode . evil-commentary-mode))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package evil-surround
|
2023-03-06 11:06:22 -09:00
|
|
|
|
:after evil
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:diminish 'global-evil-surround-mode
|
2022-06-22 06:41:28 -08:00
|
|
|
|
:hook (prog-mode . evil-surround-mode)
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:config (global-evil-surround-mode 1))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package evil-matchit
|
2023-03-06 11:06:22 -09:00
|
|
|
|
:after evil
|
2022-09-25 12:42:35 -08:00
|
|
|
|
:diminish 'evil-matchit-mode
|
|
|
|
|
:config (global-evil-matchit-mode 1))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package evil-terminal-cursor-changer
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:after evil
|
|
|
|
|
:diminish
|
|
|
|
|
:if (not (display-graphic-p))
|
2022-11-06 19:37:47 -09:00
|
|
|
|
:custom
|
|
|
|
|
(evil-motion-state-cursor 'box) ; █
|
|
|
|
|
(evil-visual-state-cursor 'box) ; █
|
|
|
|
|
(evil-normal-state-cursor 'box) ; █
|
|
|
|
|
(evil-insert-state-cursor 'bar) ; ⎸
|
|
|
|
|
(evil-emacs-state-cursor 'hbar) ; _
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:config
|
|
|
|
|
(evil-terminal-cursor-changer-activate)
|
|
|
|
|
(xterm-mouse-mode))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package undo-fu
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:after evil
|
2022-07-05 20:56:48 -08:00
|
|
|
|
:if (< (string-to-number emacs-version) 28)
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:diminish)
|
2023-03-08 09:08:42 -09:00
|
|
|
|
(use-package vundo
|
|
|
|
|
:custom (vundo-glyph-alist vundo-unicode-symbols))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package evil-goggles
|
2023-01-25 10:51:08 -09:00
|
|
|
|
:diminish
|
|
|
|
|
:after evil
|
|
|
|
|
:init (evil-goggles-mode)
|
|
|
|
|
:custom-face
|
|
|
|
|
(evil-goggles-default-face
|
|
|
|
|
((t (:background "#303030" :foreground "#2233aa")))))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package altcaps
|
2023-03-06 11:06:22 -09:00
|
|
|
|
:after evil
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:elpaca (:host github
|
|
|
|
|
:repo "protesilaos/altcaps")
|
2022-11-27 14:43:47 -09:00
|
|
|
|
:general (general-define-key
|
|
|
|
|
:states 'visual
|
|
|
|
|
"`" 'altcaps-region))
|
2022-06-19 14:13:36 -08:00
|
|
|
|
|
2022-08-27 21:47:33 -08:00
|
|
|
|
;; eshell. Pretty good actually.
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package eshell
|
|
|
|
|
:elpaca nil
|
2023-03-08 08:40:52 -09:00
|
|
|
|
;; :commands (eshell/emacs eshell/man)
|
2023-02-23 12:50:19 -09:00
|
|
|
|
;; :init
|
|
|
|
|
;; (defun eshell-banner-initialize ()
|
|
|
|
|
;; "Run Neofetch in eshell."
|
|
|
|
|
;; (eshell/ls nil))
|
2022-10-10 13:35:05 -08:00
|
|
|
|
:custom
|
|
|
|
|
(eshell-scroll-to-bottom-on-input t)
|
|
|
|
|
(eshell-hist-ignoredups t)
|
2023-01-21 22:07:40 -09:00
|
|
|
|
(eshell-history-file-name nil)
|
|
|
|
|
(eshell-history-size nil)
|
2023-03-06 11:05:10 -09:00
|
|
|
|
(eshell-banner-message "")
|
2023-03-08 08:40:52 -09:00
|
|
|
|
(eshell-expand-input-functions '(eshell-expand-history-references))
|
2022-08-27 21:47:33 -08:00
|
|
|
|
:config
|
|
|
|
|
(add-to-list 'eshell-modules-list 'eshell-rebind)
|
2023-01-21 22:07:40 -09:00
|
|
|
|
(add-to-list 'eshell-modules-list 'eshell-hist)
|
2023-03-04 16:47:23 -09:00
|
|
|
|
(add-to-list 'eshell-modules-list 'eshell-tramp)
|
2023-03-10 18:42:10 -09:00
|
|
|
|
(add-hook 'kill-emacs-hook (lambda ()
|
|
|
|
|
(if (fboundp #'eshell-save-some-history)
|
|
|
|
|
(eshell-save-some-history))))
|
2022-08-27 21:47:33 -08:00
|
|
|
|
(defun eshell-evil-insert-line (count &optional vcount)
|
|
|
|
|
(interactive "p")
|
|
|
|
|
(eshell-bol)
|
|
|
|
|
(evil-insert count vcount))
|
2023-01-03 16:25:18 -09:00
|
|
|
|
(defun mitch/edit-file-or-lib (name)
|
|
|
|
|
"Edit library called NAME if it exists, otherwise edit FILE.
|
|
|
|
|
|
|
|
|
|
If the current window occupies the whole frame, split it."
|
2023-01-03 18:13:11 -09:00
|
|
|
|
(let* ((old-buffer (current-buffer))
|
|
|
|
|
(old-default-dir default-directory) ; needed to preserve environment
|
2023-01-03 16:25:18 -09:00
|
|
|
|
find-fun lib-fun ; scope these so we can bind them later
|
2022-12-24 14:17:09 -09:00
|
|
|
|
(openfun (lambda (arg)
|
2023-01-03 16:25:18 -09:00
|
|
|
|
"Implicit function for opening a file or library."
|
2022-12-24 14:17:09 -09:00
|
|
|
|
(let ((arg-file-name (expand-file-name arg))
|
|
|
|
|
(arg-lib-name (locate-library arg)))
|
|
|
|
|
(if (file-exists-p arg-file-name)
|
|
|
|
|
(funcall find-fun arg-file-name)
|
|
|
|
|
(if arg-lib-name
|
|
|
|
|
(funcall lib-fun arg)
|
|
|
|
|
(funcall find-fun arg-file-name)))))))
|
2023-01-03 16:25:18 -09:00
|
|
|
|
(if (one-window-p)
|
2022-12-24 14:17:09 -09:00
|
|
|
|
(setq find-fun #'find-file-other-window
|
|
|
|
|
lib-fun #'find-library-other-window)
|
|
|
|
|
(setq find-fun #'find-file
|
|
|
|
|
lib-fun #'find-library))
|
2023-01-03 18:13:11 -09:00
|
|
|
|
(let ((result (funcall openfun name)))
|
|
|
|
|
(with-current-buffer old-buffer
|
|
|
|
|
(setq default-directory old-default-dir))
|
|
|
|
|
result)))
|
2023-01-03 16:25:18 -09:00
|
|
|
|
(defun eshell/emacs (&rest args)
|
|
|
|
|
"run external Emacs."
|
|
|
|
|
(eshell-eval-using-options ; this is somewhat broken but works okay
|
|
|
|
|
"emacs" args
|
|
|
|
|
'(
|
|
|
|
|
(nil "batch" nil batch "Non-interactive")
|
|
|
|
|
(nil "chdir" t change-dir "change to directory DIR")
|
|
|
|
|
("nw" nil nil no-window "open in terminal mode, no window")
|
|
|
|
|
("fs" "fullscreen" nil full-screen "Open in full screen")
|
|
|
|
|
:external "emacs"
|
|
|
|
|
:usage "[FILE] etc placeholder text...")
|
|
|
|
|
(mapcar #'mitch/edit-file-or-lib
|
|
|
|
|
(eshell-stringify-list (flatten-tree (reverse args))))))
|
2022-12-04 13:22:22 -09:00
|
|
|
|
(defun mitch/eshell-setup-keys ()
|
|
|
|
|
(evil-collection-define-key
|
|
|
|
|
'normal
|
|
|
|
|
'eshell-mode-map
|
|
|
|
|
(kbd "I") 'eshell-evil-insert-line
|
|
|
|
|
(kbd "RET") 'hkey-either))
|
|
|
|
|
(advice-add 'evil-collection-eshell-setup-keys
|
|
|
|
|
:after 'mitch/eshell-setup-keys))
|
2023-02-08 14:01:27 -09:00
|
|
|
|
;; show command that caused last scrollback in eshell etc
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package sticky-shell
|
|
|
|
|
:elpaca (sticky-shell
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:host github
|
|
|
|
|
:repo "andyjda/sticky-shell")
|
2023-02-08 14:01:27 -09:00
|
|
|
|
:after eshell
|
|
|
|
|
:config
|
|
|
|
|
(defun esh--turn-off-sticky-shell ()
|
|
|
|
|
"Disable `sticky-shell-mode'."
|
|
|
|
|
(sticky-shell-mode -1))
|
|
|
|
|
(defun esh--turn-on-sticky-shell ()
|
|
|
|
|
"Enable `sticky-shell-mode'."
|
|
|
|
|
(sticky-shell-mode 1))
|
|
|
|
|
(defun mitch/sticky-shell-refresh ()
|
|
|
|
|
"Only turn on sticky-shell if the prompt is at the bottom line of window."
|
|
|
|
|
(if (>= (line-number-at-pos (point)) (window-height))
|
|
|
|
|
(esh--turn-on-sticky-shell)
|
|
|
|
|
(esh--turn-off-sticky-shell)))
|
|
|
|
|
(add-hook 'eshell-post-command-hook #'mitch/sticky-shell-refresh)
|
|
|
|
|
;; https://emacs.ch/@bram85/109612654687707030
|
|
|
|
|
(defun mitch/esh-outline-setup ()
|
|
|
|
|
(outline-minor-mode)
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(diminish 'outline-minor-mode)
|
2023-02-08 14:01:27 -09:00
|
|
|
|
(setq-local outline-regexp eshell-prompt-regexp))
|
|
|
|
|
(add-hook 'eshell-mode-hook #'mitch/esh-outline-setup))
|
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package eat
|
|
|
|
|
:elpaca (eat :type git
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:host codeberg
|
|
|
|
|
:repo "akib/emacs-eat"
|
|
|
|
|
:files ("*.el" ("term" "term/*.el") "*.texi"
|
|
|
|
|
"*.ti" ("terminfo/e" "terminfo/e/*")
|
|
|
|
|
("terminfo/65" "terminfo/65/*")
|
|
|
|
|
("integration" "integration/*")
|
|
|
|
|
(:exclude ".dir-locals.el" "*-tests.el")))
|
2023-01-03 21:11:57 -09:00
|
|
|
|
:custom
|
|
|
|
|
(eat-kill-buffer-on-exit t)
|
2023-01-31 19:16:35 -09:00
|
|
|
|
:hook
|
|
|
|
|
(eshell-mode . eat-eshell-visual-command-mode)
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(eshell-mode . eat-eshell-mode)
|
2023-01-31 19:16:35 -09:00
|
|
|
|
(eat-mode . evil-insert-state))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package hide-mode-line
|
2023-01-03 21:11:18 -09:00
|
|
|
|
:commands (hide-mode-line-mode))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
;; (use-package eshell-vterm
|
2022-11-25 22:40:33 -09:00
|
|
|
|
;; :after eshell
|
|
|
|
|
;; :custom (eshell-destroy-buffer-when-process-dies t)
|
|
|
|
|
;; :hook (eshell-mode . eshell-vterm-mode))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package eshell-syntax-highlighting
|
2022-10-04 17:57:54 -08:00
|
|
|
|
:after eshell
|
2022-11-29 15:59:12 -09:00
|
|
|
|
:hook (eshell-mode . eshell-syntax-highlighting-mode))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package eshell-dat
|
|
|
|
|
:elpaca (eshell-dat
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:repo "https://git.mitchmarq42.xyz/mitch/eshell-dat")
|
2022-12-14 22:33:02 -09:00
|
|
|
|
:after eshell)
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package ansilove
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:elpaca (:host gitlab
|
|
|
|
|
:repo "xgqt/emacs-ansilove")
|
2023-02-08 13:55:41 -09:00
|
|
|
|
:commands ansilove)
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package gitstatus
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:elpaca (:host github
|
|
|
|
|
:repo "igorepst/gitstatus-el")
|
2022-08-27 21:47:33 -08:00
|
|
|
|
:after eshell
|
2023-03-10 18:39:21 -09:00
|
|
|
|
:init
|
|
|
|
|
(setq system-architecture (car (split-string system-configuration "-")))
|
|
|
|
|
(setq gitstatusd-exe (format "~/.cache/gitstatus/gitstatusd-linux-%s"
|
|
|
|
|
system-architecture))
|
|
|
|
|
(add-hook 'eshell-before-prompt-hook #'gitstatus-eshell-start))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package p11k
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:elpaca (:repo "https://git.mitchmarq42.xyz/mitch/p11k-el")
|
2023-02-23 12:50:19 -09:00
|
|
|
|
:after eshell
|
2023-03-04 16:48:00 -09:00
|
|
|
|
:hook (eshell-first-time-mode . p11k-mode))
|
2022-08-27 21:47:33 -08:00
|
|
|
|
|
2022-12-04 13:24:54 -09:00
|
|
|
|
;; File manager. Only breaks when you brag about how it doesn't.
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package all-the-icons
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:elpaca (all-the-icons :post-build
|
|
|
|
|
("emacsclient" "--eval '(all-the-icons-install-fonts t)'")))
|
2023-03-08 08:00:51 -09:00
|
|
|
|
(use-package nerd-fonts
|
|
|
|
|
:elpaca (:host github
|
|
|
|
|
:repo "twlz0ne/nerd-fonts.el"))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package dirvish
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:elpaca (:files (:defaults "extensions/*.el"))
|
2022-08-24 19:28:10 -08:00
|
|
|
|
:defer 0.5
|
|
|
|
|
:commands dirvish
|
2022-07-28 07:06:19 -08:00
|
|
|
|
:custom
|
|
|
|
|
(dirvish-attributes '(all-the-icons collapse))
|
|
|
|
|
(dirvish-cache-dir (expand-file-name ".dirvish/" user-emacs-directory))
|
2022-08-24 19:28:10 -08:00
|
|
|
|
(dired-listing-switches "-l --almost-all")
|
|
|
|
|
(dirvish-side-display-alist '((window-width . 0.15)
|
|
|
|
|
(slot . -1)
|
|
|
|
|
(side . left)))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
;; :init (dirvish-override-dired-mode t)
|
2022-08-24 19:28:10 -08:00
|
|
|
|
:config
|
2022-07-17 10:50:11 -08:00
|
|
|
|
(general-define-key
|
|
|
|
|
:states 'normal
|
2022-07-20 17:31:42 -08:00
|
|
|
|
:keymaps 'dirvish-mode-map
|
2022-07-17 10:50:11 -08:00
|
|
|
|
"h" 'dired-up-directory
|
|
|
|
|
"l" 'dired-find-file
|
2022-11-17 14:43:06 -09:00
|
|
|
|
"/" 'dirvish-narrow
|
|
|
|
|
"q" 'dirvish-quit)
|
2022-07-17 10:50:11 -08:00
|
|
|
|
(general-define-key
|
|
|
|
|
:states 'normal
|
|
|
|
|
:prefix-command 'file-tree-map-prefix
|
|
|
|
|
:prefix-map 'file-tree-map
|
|
|
|
|
:prefix "SPC t"
|
|
|
|
|
"t" 'dirvish-side))
|
2022-07-20 17:31:42 -08:00
|
|
|
|
|
2022-06-19 14:13:36 -08:00
|
|
|
|
;; Completion framework...
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package vertico
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:elpaca (:files (:defaults "extensions/vertico-mouse.el"))
|
2022-07-16 18:03:19 -08:00
|
|
|
|
:custom (vertico-resize t)
|
2022-08-29 05:47:01 -08:00
|
|
|
|
:init (vertico-mode t)
|
|
|
|
|
:config
|
2022-08-28 14:25:50 -08:00
|
|
|
|
(add-hook 'minibuffer-setup-hook 'turn-off-line-numbers)
|
|
|
|
|
(defun backspace-in-minibuffer ()
|
|
|
|
|
"If previous character is `/', kill to the previous `/'.
|
2022-10-06 10:24:25 -08:00
|
|
|
|
Otherwise, kill back 1 letter.
|
|
|
|
|
|
|
|
|
|
see https://www.reddit.com/r/emacs/comments/xq6rpa/comment/iqynyu9/?utm_source=share&utm_medium=web2x&context=3"
|
2022-08-28 14:25:50 -08:00
|
|
|
|
(interactive)
|
2022-10-06 10:24:25 -08:00
|
|
|
|
(if (string-match-p "/." (minibuffer-contents))
|
|
|
|
|
(let ((end (point)))
|
|
|
|
|
(re-search-backward "/.")
|
|
|
|
|
(forward-char)
|
|
|
|
|
(delete-region (point) end))
|
2022-08-28 14:25:50 -08:00
|
|
|
|
(backward-delete-char 1)))
|
|
|
|
|
:general
|
|
|
|
|
(general-define-key
|
|
|
|
|
:prefix-map 'minibuffer-mode-map
|
|
|
|
|
"DEL" 'backspace-in-minibuffer))
|
2022-12-09 10:40:49 -09:00
|
|
|
|
(elpaca nil
|
|
|
|
|
(use-package vertico-mouse
|
2023-02-23 12:50:19 -09:00
|
|
|
|
:elpaca nil
|
2022-12-09 10:40:49 -09:00
|
|
|
|
:after vertico
|
|
|
|
|
:config
|
|
|
|
|
(vertico-mouse-mode)))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package app-launcher
|
|
|
|
|
:elpaca (app-launcher
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:host github :repo "SebastienWae/app-launcher")
|
2022-12-13 16:35:15 -09:00
|
|
|
|
:after vertico
|
|
|
|
|
:config
|
|
|
|
|
;; modified from https://www.reddit.com/r/unixporn/comments/s7p7pr/so_which_run_launcher_do_you_use_rofi_or_dmenu/
|
|
|
|
|
(defun emacs-run-launcher ()
|
|
|
|
|
"Create and select a frame called emacs-run-launcher which
|
|
|
|
|
consists only of a minibuffer and has specific dimensions. Run
|
|
|
|
|
counsel-linux-app on that frame, which is an Emacs command that
|
|
|
|
|
prompts you to select an app and open it in a dmenu like
|
|
|
|
|
behaviour. Delete the frame after that command has exited"
|
|
|
|
|
(interactive)
|
|
|
|
|
(with-selected-frame
|
|
|
|
|
(make-frame '(;; see ~/.config/sway/config
|
|
|
|
|
(name . "dentarthurdent")
|
|
|
|
|
(minibuffer . only)
|
|
|
|
|
(width . 120)
|
|
|
|
|
(height . 11)))
|
|
|
|
|
(unwind-protect
|
|
|
|
|
(app-launcher-run-app)
|
|
|
|
|
(delete-frame)))))
|
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package consult
|
2022-09-29 06:18:28 -08:00
|
|
|
|
:after vertico
|
|
|
|
|
:general
|
|
|
|
|
(general-define-key
|
|
|
|
|
[remap switch-to-buffer] 'consult-buffer))
|
2022-06-19 14:13:36 -08:00
|
|
|
|
;; Minibuffer generic stuff
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package marginalia
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:init (marginalia-mode))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package orderless
|
2022-07-16 18:03:19 -08:00
|
|
|
|
:custom
|
|
|
|
|
(completion-styles '(orderless partial-completion basic))
|
|
|
|
|
(completion-category-defaults nil)
|
|
|
|
|
;; (completion-category-overrides '((file (styles basic partial-completion))))
|
2022-07-22 06:59:25 -08:00
|
|
|
|
(completion-category-overrides nil))
|
|
|
|
|
|
|
|
|
|
;; weird multi-path thing
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package embark
|
2022-07-22 16:24:12 -08:00
|
|
|
|
:general
|
|
|
|
|
(general-define-key
|
|
|
|
|
:keymap minibuffer-mode-map
|
2022-11-29 12:18:43 -09:00
|
|
|
|
"C-." 'embark-act ; broken by default on gnome. Run `ibus-setup' -> emoji
|
2022-07-22 16:24:12 -08:00
|
|
|
|
"C-;" 'embark-dwim)
|
2022-07-22 06:59:25 -08:00
|
|
|
|
:init
|
2022-10-04 17:57:54 -08:00
|
|
|
|
;; :TODO: Should we put this in the which-key section?
|
2022-07-22 06:59:25 -08:00
|
|
|
|
(defun embark-which-key-indicator ()
|
|
|
|
|
"An embark indicator that displays keymaps using which-key.
|
|
|
|
|
The which-key help message will show the type and value of the
|
|
|
|
|
current target followed by an ellipsis if there are further
|
|
|
|
|
targets."
|
2022-07-22 16:24:12 -08:00
|
|
|
|
(lambda (&optional keymap targets prefix)
|
|
|
|
|
(if (null keymap) (which-key--hide-popup-ignore-command)
|
2022-07-22 06:59:25 -08:00
|
|
|
|
(which-key--show-keymap
|
2022-07-22 16:24:12 -08:00
|
|
|
|
(if (eq (plist-get (car targets) :type) 'embark-become)
|
|
|
|
|
"Become"
|
2022-07-22 06:59:25 -08:00
|
|
|
|
(format "Act on %s '%s'%s" (plist-get (car targets) :type)
|
|
|
|
|
(embark--truncate-target (plist-get (car targets) :target))
|
|
|
|
|
(if (cdr targets) "…" "")))
|
|
|
|
|
(if prefix (pcase (lookup-key keymap prefix 'accept-default)
|
2022-08-24 19:28:10 -08:00
|
|
|
|
((and (pred keymapp) km) km)
|
|
|
|
|
(_ (key-binding prefix 'accept-default))) keymap)
|
2022-07-22 16:24:12 -08:00
|
|
|
|
nil nil t (lambda (binding)
|
2022-07-22 06:59:25 -08:00
|
|
|
|
(not (string-suffix-p "-argument" (cdr binding))))))))
|
|
|
|
|
(setq embark-indicators
|
|
|
|
|
'(embark-which-key-indicator
|
|
|
|
|
embark-highlight-indicator
|
|
|
|
|
embark-isearch-highlight-indicator))
|
|
|
|
|
(defun embark-hide-which-key-indicator (fn &rest args)
|
|
|
|
|
"Hide the which-key indicator immediately when using the completing-read prompter."
|
|
|
|
|
(which-key--hide-popup-ignore-command)
|
|
|
|
|
(let ((embark-indicators
|
|
|
|
|
(remq #'embark-which-key-indicator embark-indicators)))
|
|
|
|
|
(apply fn args)))
|
|
|
|
|
(advice-add #'embark-completing-read-prompter
|
|
|
|
|
:around #'embark-hide-which-key-indicator)
|
2022-11-29 16:12:14 -09:00
|
|
|
|
:custom (enable-recursive-minibuffers t))
|
2022-07-22 06:59:25 -08:00
|
|
|
|
;; Consult users will also want the embark-consult package.
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package embark-consult)
|
2022-06-19 14:13:36 -08:00
|
|
|
|
|
2022-07-27 07:09:43 -08:00
|
|
|
|
;; SORTA WORKING: Relative line numbers with stuff
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package nlinum-relative
|
2022-11-30 12:27:13 -09:00
|
|
|
|
:custom
|
|
|
|
|
(nlinum-relative-redisplay-delay 0)
|
|
|
|
|
:hook (prog-mode . nlinum-relative-mode)
|
2022-08-11 06:26:14 -08:00
|
|
|
|
:init
|
2022-11-30 12:27:13 -09:00
|
|
|
|
(defun mitch/nlinum-buffer-setup ()
|
2022-12-14 22:26:37 -09:00
|
|
|
|
(nlinum-relative-mode -1)
|
|
|
|
|
(nlinum-relative-mode 99)
|
2022-11-30 12:27:13 -09:00
|
|
|
|
(setq nlinum-format-function
|
|
|
|
|
(lambda (line width)
|
|
|
|
|
(let* ((line-display (abs (- line nlinum-relative--current-line)))
|
|
|
|
|
(is-current-line? (eq line-display 0))
|
|
|
|
|
(line-display (if is-current-line?
|
|
|
|
|
nlinum-relative--current-line
|
|
|
|
|
(+ nlinum-relative-offset line-display)))
|
|
|
|
|
(numwidth (length (number-to-string line-display)))
|
|
|
|
|
(spaces (make-string (- width numwidth) ?\ ))
|
|
|
|
|
(nlinum-format (if is-current-line?
|
|
|
|
|
(format "%%d%s" spaces)
|
|
|
|
|
(format "%s%%d" spaces)))
|
|
|
|
|
(str (if (and (not (string-equal
|
|
|
|
|
nlinum-relative-current-symbol ""))
|
|
|
|
|
is-current-line?)
|
|
|
|
|
nlinum-relative-current-symbol
|
|
|
|
|
(format nlinum-format line-display))))
|
|
|
|
|
(if is-current-line?
|
|
|
|
|
(put-text-property
|
|
|
|
|
0 width 'face 'nlinum-relative-current-face str)
|
|
|
|
|
(put-text-property 0 width 'face 'linum str))
|
|
|
|
|
str)))
|
|
|
|
|
(setq-local nlinum--width (length (number-to-string
|
2022-12-13 16:37:50 -09:00
|
|
|
|
(line-number-at-pos (point-max))))))
|
2022-12-14 22:33:30 -09:00
|
|
|
|
(add-hook 'minibuffer-exit-hook #'mitch/nlinum-buffer-setup))
|
2022-06-22 06:31:32 -08:00
|
|
|
|
|
2022-06-19 14:13:36 -08:00
|
|
|
|
;; broken terminal that doesn't compile but at least it's fast when it does
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package vterm
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:custom
|
|
|
|
|
(vterm-always-compile-module t)
|
|
|
|
|
(vterm-module-cmake-args "-DUSE_SYSTEM_LIBVTERM=no")
|
|
|
|
|
(vterm-clear-scrollback-when-clearing t)
|
|
|
|
|
:config
|
|
|
|
|
(evil-collection-define-key 'insert 'vterm-mode-map
|
|
|
|
|
(kbd "C-w") 'evil-window-map)
|
2022-06-25 10:57:03 -08:00
|
|
|
|
(evil-collection-define-key 'normal 'vterm-mode-map
|
2022-10-04 17:04:07 -08:00
|
|
|
|
(kbd "RET") 'hkey-either
|
|
|
|
|
(kbd "k") 'vterm-send-up
|
2022-06-27 18:58:48 -08:00
|
|
|
|
(kbd "j") 'vterm-send-down)
|
2022-06-19 14:13:36 -08:00
|
|
|
|
(add-to-list 'vterm-keymap-exceptions
|
2022-06-25 10:57:03 -08:00
|
|
|
|
"C-w")
|
|
|
|
|
(add-to-list 'vterm-keymap-exceptions
|
|
|
|
|
"RET")
|
2022-06-19 14:13:36 -08:00
|
|
|
|
(setq mitch/vterm-eval-cmds-strings
|
2022-06-25 10:57:03 -08:00
|
|
|
|
'("update-pwd"
|
|
|
|
|
"restart-emacs"
|
|
|
|
|
"find-file-other-window"
|
|
|
|
|
"find-file-other-frame"
|
|
|
|
|
"eshell/emacs"
|
2022-06-27 18:58:48 -08:00
|
|
|
|
"eshell/man"
|
2022-07-17 10:50:11 -08:00
|
|
|
|
"dirvish"
|
|
|
|
|
"magit"
|
2022-06-27 18:58:48 -08:00
|
|
|
|
"info-other-window"
|
2022-06-25 10:57:03 -08:00
|
|
|
|
"add-vterm-eval-cmd"))
|
|
|
|
|
(defun add-vterm-eval-cmd (function)
|
|
|
|
|
"Add FUNCTION to `vterm-eval-cmds' so it can be ran through sh in vterm."
|
2022-06-19 14:13:36 -08:00
|
|
|
|
(add-to-list 'vterm-eval-cmds
|
2022-06-25 10:57:03 -08:00
|
|
|
|
(list function (intern function))))
|
|
|
|
|
(dolist (emacs-function mitch/vterm-eval-cmds-strings)
|
|
|
|
|
(add-vterm-eval-cmd emacs-function))
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:hook
|
|
|
|
|
(vterm-mode . mitch/terminal-setup)
|
|
|
|
|
(vterm-exit-functions . save-buffers-kill-terminal))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package multi-vterm
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:commands (multi-vterm multi-vterm-other-window)
|
|
|
|
|
:config
|
|
|
|
|
(defun multi-vterm-other-window ()
|
|
|
|
|
"Run a new-ish vterm in the other window"
|
|
|
|
|
(interactive)
|
|
|
|
|
(other-window 1) (multi-vterm))
|
|
|
|
|
:general
|
|
|
|
|
(general-define-key
|
|
|
|
|
:states '(normal visual)
|
|
|
|
|
:prefix "SPC"
|
|
|
|
|
:non-normal-prefix "SPC"
|
|
|
|
|
"v" 'multi-vterm)
|
|
|
|
|
(general-define-key
|
|
|
|
|
:states 'normal
|
|
|
|
|
:prefix-map 'ctl-x-4-map
|
|
|
|
|
:prefix "SPC 4"
|
|
|
|
|
"v" 'multi-vterm-other-window))
|
|
|
|
|
|
2022-07-11 17:59:39 -08:00
|
|
|
|
;; Better modeline? Better modeline.
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package powerline
|
2022-11-27 14:42:13 -09:00
|
|
|
|
:custom
|
|
|
|
|
(powerline-display-buffer-size nil)
|
|
|
|
|
(powerline-default-separator 'utf-8)
|
|
|
|
|
(powerline-utf-8-separator-left (string-to-char ""))
|
|
|
|
|
(powerline-utf-8-separator-right (string-to-char "")))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package airline-themes
|
2022-08-11 06:27:00 -08:00
|
|
|
|
:custom
|
|
|
|
|
(airline-cursor-colors nil)
|
|
|
|
|
(airline-display-directory t)
|
|
|
|
|
(airline-eshell-colors nil)
|
2022-11-27 14:42:13 -09:00
|
|
|
|
(airline-shortened-directory-length 20)
|
2023-01-03 21:11:18 -09:00
|
|
|
|
:custom-face
|
|
|
|
|
(mode-line
|
|
|
|
|
((t (:box (:style released-button :line-width (0.5 . 0.5))))))
|
|
|
|
|
;; :config (load-theme 'airline-kolor t)
|
|
|
|
|
)
|
2022-11-06 19:40:30 -09:00
|
|
|
|
;; see https://github.com/dbordak/telephone-line/issues/126
|
2022-11-27 14:42:13 -09:00
|
|
|
|
;; (no telephone-line because why)
|
2022-11-06 19:40:30 -09:00
|
|
|
|
|
2022-10-09 12:00:36 -08:00
|
|
|
|
;; Custom Theme.
|
|
|
|
|
;; Not to be confused with a color theme, or a color scheme, or a custom scheme.
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package sv-theme
|
|
|
|
|
:elpaca (sv-theme
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:repo
|
|
|
|
|
"https://git.mitchmarq42.xyz/mitch/vimcolors")
|
2023-01-03 21:11:18 -09:00
|
|
|
|
:config
|
|
|
|
|
(mitch/visual-setup)
|
|
|
|
|
(load-theme 'airline-ravenpower t)
|
2023-01-03 11:51:40 -09:00
|
|
|
|
:init (load-theme 'sv t))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
;; (use-package doom-themes
|
2023-01-03 21:11:18 -09:00
|
|
|
|
;; :config (mitch/visual-setup)
|
|
|
|
|
;; (load-theme 'airline-ravenpower t)
|
|
|
|
|
;; :init (load-theme 'doom-acario-dark t))
|
2022-06-19 14:13:36 -08:00
|
|
|
|
|
2023-03-08 08:40:16 -09:00
|
|
|
|
(use-package page-break-lines
|
2023-03-08 09:08:32 -09:00
|
|
|
|
:diminish
|
2023-03-08 08:40:16 -09:00
|
|
|
|
:hook (emacs-lisp-mode . page-break-lines-mode))
|
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package yascroll
|
2022-10-04 17:51:31 -08:00
|
|
|
|
:diminish
|
|
|
|
|
:defer 1
|
2022-10-07 19:37:49 -08:00
|
|
|
|
;; :if (not (display-graphic-p))
|
2022-10-04 17:51:31 -08:00
|
|
|
|
:custom (yascroll:delay-to-hide nil)
|
2023-01-04 10:38:57 -09:00
|
|
|
|
;; :custom-face
|
|
|
|
|
;; (yascroll:thumb-fringe
|
|
|
|
|
;; ((t (:background "green3"))))
|
2022-10-11 16:20:08 -08:00
|
|
|
|
:config
|
|
|
|
|
(defun yascroll:make-thumb-overlay-fringe (left-or-right)
|
|
|
|
|
"Make thumb overlay on the LEFT-OR-RIGHT fringe."
|
|
|
|
|
(let* ((pos (point))
|
|
|
|
|
;; If `pos' is at the beginning of line, overlay of the
|
|
|
|
|
;; fringe will be on the previous visual line.
|
|
|
|
|
(pos (if (= (line-end-position) pos) pos (1+ pos)))
|
|
|
|
|
;; below originally said `filled-rectangle' instead of `empty-line'.
|
|
|
|
|
;; Changed to fix transparency.
|
|
|
|
|
(display-string `(,left-or-right empty-line yascroll:thumb-fringe))
|
|
|
|
|
(after-string (propertize "." 'display display-string))
|
|
|
|
|
(overlay (make-overlay pos pos)))
|
|
|
|
|
(overlay-put overlay 'after-string after-string)
|
|
|
|
|
(overlay-put overlay 'fringe-helper t)
|
|
|
|
|
(overlay-put overlay 'window (selected-window))
|
|
|
|
|
(overlay-put overlay 'priority yascroll:priority)
|
|
|
|
|
overlay))
|
2023-01-04 10:38:57 -09:00
|
|
|
|
(add-to-list 'yascroll:disabled-modes 'org-mode)
|
2023-01-13 15:56:35 -09:00
|
|
|
|
;; (global-yascroll-bar-mode 1)
|
|
|
|
|
)
|
2022-06-19 14:13:36 -08:00
|
|
|
|
|
|
|
|
|
;; parentheses settingses
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(elpaca (paredit :depth nil)
|
|
|
|
|
(use-package paredit
|
|
|
|
|
:elpaca nil
|
|
|
|
|
;; elpaca declaration is broken, I just cloned it manually to .config/emacs/elpaca/repos
|
|
|
|
|
;; see my issue https://github.com/progfolio/elpaca/issues/40
|
|
|
|
|
:diminish
|
|
|
|
|
:general (general-define-key
|
|
|
|
|
"M-j" 'paredit-forward-slurp-sexp
|
|
|
|
|
"M-k" 'paredit-forward-barf-sexp
|
|
|
|
|
"M-h" 'paredit-backward-barf-sexp
|
|
|
|
|
"M-l" 'paredit-backward-slurp-sexp)
|
|
|
|
|
:hook (prog-mode . paredit-mode)
|
|
|
|
|
:init
|
|
|
|
|
(show-paren-mode 1)
|
|
|
|
|
(paredit-mode 1)
|
|
|
|
|
(electric-pair-mode 1)
|
|
|
|
|
:custom
|
|
|
|
|
(show-paren-delay 0)
|
|
|
|
|
(show-paren-style 'parenthesis)))
|
|
|
|
|
(use-package evil-paredit
|
2022-10-07 19:38:02 -08:00
|
|
|
|
:after paredit
|
|
|
|
|
:hook (evil-mode . evil-paredit-mode))
|
2022-06-19 14:13:36 -08:00
|
|
|
|
|
|
|
|
|
;; org mode and messy things
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package org
|
|
|
|
|
:elpaca nil
|
2022-11-01 14:19:14 -08:00
|
|
|
|
:diminish (org-indent-mode org-vw-mode)
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:custom
|
2023-01-03 21:11:18 -09:00
|
|
|
|
;; (org-hide-leading-stars t)
|
2022-12-09 10:22:50 -09:00
|
|
|
|
;; (org-startup-indented t)
|
|
|
|
|
;; (org-hide-emphasis-markers t)
|
2023-01-03 21:11:18 -09:00
|
|
|
|
(inhibit-compacting-font-caches t)
|
2023-03-08 18:22:34 -09:00
|
|
|
|
(org-element-use-cache nil)
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:config
|
2022-06-21 07:26:38 -08:00
|
|
|
|
(add-hook 'after-save-hook
|
2023-01-03 21:11:18 -09:00
|
|
|
|
(lambda () (if (equal major-mode 'org-mode)
|
2023-01-12 16:26:28 -09:00
|
|
|
|
(org-babel-tangle))))
|
2023-02-08 13:56:15 -09:00
|
|
|
|
(remove '(?< . ?>) electric-pair-pairs)
|
|
|
|
|
(electric-pair-mode -1)
|
2022-11-15 10:49:15 -09:00
|
|
|
|
(defvar org-electric-pairs '((?_ . ?_)
|
2022-11-02 17:31:15 -08:00
|
|
|
|
(?/ . ?/)
|
|
|
|
|
(?* . ?*)
|
|
|
|
|
(?+ . ?+)
|
2022-11-22 06:45:01 -09:00
|
|
|
|
(?~ . ?~)
|
2022-11-02 17:31:15 -08:00
|
|
|
|
(?= . ?=))
|
2022-11-02 13:59:22 -08:00
|
|
|
|
"Electric pairs for org-mode.
|
2022-11-02 09:39:36 -08:00
|
|
|
|
|
2022-11-02 13:59:22 -08:00
|
|
|
|
See https://emacs.stackexchange.com/questions/2538/how-to-define-additional-mode-specific-pairs-for-electric-pair-mode")
|
2022-12-09 10:22:50 -09:00
|
|
|
|
;; (defun org-add-electric-pairs ()
|
|
|
|
|
;; (setq-local electric-pair-pairs (append electric-pair-pairs org-electric-pairs))
|
|
|
|
|
;; (setq-local electric-pair-text-pairs electric-pair-pairs))
|
|
|
|
|
;; (add-hook 'org-mode-hook 'org-add-electric-pairs)
|
2022-09-24 19:02:57 -08:00
|
|
|
|
(require 'mitch-orgstuff)
|
2022-11-27 14:46:18 -09:00
|
|
|
|
(defun insert-zws ()
|
|
|
|
|
(interactive)
|
|
|
|
|
(insert 8203)) ; this is a Zero Width Space. It makes things confusing.
|
2023-01-11 07:53:21 -09:00
|
|
|
|
(defun insert-ï ()
|
2023-01-12 16:26:28 -09:00
|
|
|
|
(interactive)
|
2023-01-11 07:53:21 -09:00
|
|
|
|
(insert 239)) ; this is a lowercase I with an umlaut. Used for the word `naiive'.
|
2023-03-11 09:29:05 -09:00
|
|
|
|
(defun mitch/org-grayify-stars ()
|
|
|
|
|
"Make the `*' characters in Org headlines look like the `#'s in markdown."
|
|
|
|
|
(interactive)
|
|
|
|
|
(font-lock-add-keywords
|
|
|
|
|
nil
|
|
|
|
|
`((,(rx bol (+ "*")) . ;; shadow
|
|
|
|
|
font-lock-doc-markup-face))))
|
|
|
|
|
(add-hook 'org-mode-hook
|
|
|
|
|
#'mitch/org-grayify-stars 90)
|
2022-09-24 19:02:57 -08:00
|
|
|
|
:hook
|
|
|
|
|
(org-mode . turn-off-line-numbers)
|
2022-11-27 14:46:18 -09:00
|
|
|
|
(org-mode . org-vw-mode)
|
2022-12-09 10:22:50 -09:00
|
|
|
|
(org-mode . yas-minor-mode)
|
2022-11-27 14:46:18 -09:00
|
|
|
|
:general (general-define-key
|
|
|
|
|
:states 'insert
|
2022-12-09 10:22:50 -09:00
|
|
|
|
:keymaps 'org-mode-map
|
2022-12-03 09:28:13 -09:00
|
|
|
|
"`" (general-key-dispatch 'self-insert-command
|
2022-12-09 10:22:50 -09:00
|
|
|
|
:timeout 0.1
|
2023-01-11 07:53:21 -09:00
|
|
|
|
"SPC" 'insert-zws
|
|
|
|
|
"i" 'insert-ï))
|
2022-12-09 10:22:50 -09:00
|
|
|
|
(general-define-key
|
|
|
|
|
:states '(normal visual insert)
|
|
|
|
|
:keymaps 'org-mode-map
|
|
|
|
|
"_" 'mitch/org-dwim-char
|
|
|
|
|
"/" 'mitch/org-dwim-char
|
|
|
|
|
"*" 'mitch/org-dwim-char
|
|
|
|
|
"+" 'mitch/org-dwim-char
|
|
|
|
|
"~" 'mitch/org-dwim-char
|
2023-02-08 13:56:15 -09:00
|
|
|
|
"=" 'mitch/org-dwim-char)
|
|
|
|
|
(general-define-key
|
|
|
|
|
:states 'normal
|
|
|
|
|
:keymaps 'org-src-mode-map
|
|
|
|
|
"ZZ" 'org-edit-src-exit))
|
2023-03-11 09:39:35 -09:00
|
|
|
|
(use-package org-modern-indent
|
|
|
|
|
:elpaca (:host github :repo "jdtsmith/org-modern-indent")
|
|
|
|
|
:diminish org-indent-mode
|
|
|
|
|
:hook (org-mode . org-indent-mode)
|
|
|
|
|
:config (add-hook 'org-mode-hook #'org-modern-indent-mode 90))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package org-block-capf
|
|
|
|
|
:elpaca (org-block-capf
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:host github
|
|
|
|
|
:repo "xenodium/org-block-capf")
|
2023-02-08 13:56:15 -09:00
|
|
|
|
:after org
|
|
|
|
|
:init (add-hook 'org-mode-hook
|
|
|
|
|
#'org-block-capf-add-to-completion-at-point-functions))
|
2022-12-09 10:22:50 -09:00
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package org-tempo
|
|
|
|
|
:elpaca nil
|
2022-08-08 06:36:43 -08:00
|
|
|
|
:after org
|
|
|
|
|
:config
|
|
|
|
|
(add-to-list 'org-structure-template-alist '("sh" . "src shell"))
|
|
|
|
|
(add-to-list 'org-structure-template-alist '("el" . "src elisp"))
|
|
|
|
|
(add-to-list 'org-structure-template-alist '("html" . "src html")))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
;; (use-package org-variable-pitch
|
2022-12-09 10:26:11 -09:00
|
|
|
|
;; :after org
|
|
|
|
|
;; :if (display-graphic-p)
|
|
|
|
|
;; :diminish (buffer-face-mode org-variable-pitch-minor-mode)
|
|
|
|
|
;; :custom-face (org-meta-line
|
|
|
|
|
;; ((nil (:inherit
|
|
|
|
|
;; (font-lock-comment-delimiter-face fixed-pitch)))))
|
|
|
|
|
;; :hook (org-mode . org-variable-pitch-minor-mode))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
;; (use-package org-appear
|
2022-12-09 10:26:11 -09:00
|
|
|
|
;; :hook (org-mode . org-appear-mode)
|
|
|
|
|
;; :after org
|
|
|
|
|
;; :custom
|
|
|
|
|
;; (org-appear-autolinks t)
|
|
|
|
|
;; (org-appear-autoemphasis t)
|
|
|
|
|
;; (org-appear-autoentities t)
|
|
|
|
|
;; (org-appear-autokeywords t)
|
|
|
|
|
;; (org-appear-autosubmarkers t))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package org-pretty-table
|
|
|
|
|
:elpaca (org-pretty-table
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:host github
|
|
|
|
|
:repo "Fuco1/org-pretty-table")
|
2022-10-26 09:45:00 -08:00
|
|
|
|
:diminish
|
2022-10-07 19:38:12 -08:00
|
|
|
|
:hook (org-mode . org-pretty-table-mode))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package ox-hugo
|
2022-11-23 11:07:27 -09:00
|
|
|
|
:after org
|
2022-11-22 06:42:19 -09:00
|
|
|
|
:config
|
|
|
|
|
(defun hugo-dir-above (dir)
|
|
|
|
|
"Return path of Hugo project root above or at DIR.
|
|
|
|
|
Return nil if DIR is not in a hugo project at all."
|
2023-02-06 15:35:09 -09:00
|
|
|
|
(let ((thisdir dir))
|
|
|
|
|
(let ((lexical-binding t))
|
|
|
|
|
(if (eq thisdir nil) nil
|
|
|
|
|
(if (file-exists-p (expand-file-name "config.toml" thisdir))
|
|
|
|
|
thisdir
|
|
|
|
|
(let ((updir (file-name-directory (string-trim-right thisdir "/"))))
|
|
|
|
|
(hugo-dir-above updir)))))))
|
|
|
|
|
;; (hugo-dir-above "~/.local/git/mitchmarq42.github.io/content-org/")
|
|
|
|
|
(defun hugo-compile (&optional dir)
|
|
|
|
|
(interactive)
|
|
|
|
|
(if (bound-and-true-p dir) nil
|
|
|
|
|
(setq dir default-directory))
|
2022-11-23 11:08:29 -09:00
|
|
|
|
(let ((hugo-dir (hugo-dir-above dir)))
|
|
|
|
|
(if hugo-dir
|
2023-02-06 15:35:09 -09:00
|
|
|
|
(progn
|
|
|
|
|
(if (string-match-p (rx bol (* any) "/content-org" (opt "/") eol)
|
|
|
|
|
default-directory)
|
2023-03-11 09:01:19 -09:00
|
|
|
|
(org-hugo-export-wim-to-md))
|
2022-12-02 16:02:07 -09:00
|
|
|
|
(let* ((default-directory hugo-dir)
|
|
|
|
|
(buffer (get-buffer-create "*hugo*")))
|
|
|
|
|
(with-current-buffer buffer
|
2023-02-06 15:35:09 -09:00
|
|
|
|
;; (compilation-mode)
|
|
|
|
|
(let* ((inhibit-read-only t)
|
|
|
|
|
(status-code (call-process-shell-command "hugo" nil buffer)))
|
|
|
|
|
(if (zerop status-code)
|
|
|
|
|
(message "Hugo re-generated!")
|
|
|
|
|
(error "Hugo exited %s, better change something!" status-code)))))))))
|
|
|
|
|
(add-hook 'after-save-hook #'hugo-compile))
|
2022-06-19 14:13:36 -08:00
|
|
|
|
|
2022-10-26 09:46:08 -08:00
|
|
|
|
;; fake indentation, other than the other fake indentation
|
2023-02-23 12:50:19 -09:00
|
|
|
|
;; (use-package adaptive-wrap
|
2022-12-09 10:30:04 -09:00
|
|
|
|
;; :custom (adaptive-wrap-extra-indent 2)
|
|
|
|
|
;; :hook (org-mode . adaptive-wrap-prefix-mode))
|
2022-10-26 09:46:08 -08:00
|
|
|
|
|
2022-06-19 14:13:36 -08:00
|
|
|
|
;; cheaty key popups
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package which-key
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:diminish
|
|
|
|
|
:defer 5
|
2022-11-27 14:47:53 -09:00
|
|
|
|
:custom (which-key-idle-delay 2.5)
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:init (which-key-mode t))
|
|
|
|
|
|
|
|
|
|
;; parentheses are boring
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package rainbow-delimiters
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:diminish
|
|
|
|
|
:defer 1
|
|
|
|
|
:hook (prog-mode . rainbow-delimiters-mode))
|
|
|
|
|
|
|
|
|
|
;; Hex colors
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package rainbow-mode
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:diminish
|
|
|
|
|
:hook (prog-mode . rainbow-mode))
|
|
|
|
|
|
|
|
|
|
;; Nobody loves a good language
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package powershell
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:mode ("\\.ps1\\'" . powershell-mode))
|
2022-11-06 19:38:47 -09:00
|
|
|
|
|
2022-06-19 14:13:36 -08:00
|
|
|
|
;; c sharp; taken from https://www.reddit.com/r/emacs/comments/k8tnzg/help_setting_up_c_lsp_omnisharproslyn/
|
2022-11-27 14:50:21 -09:00
|
|
|
|
;; (there is nothing here because I'm not using c sharp...)
|
2022-06-19 14:13:36 -08:00
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package lsp-mode
|
2022-10-26 10:53:10 -08:00
|
|
|
|
:hook ((powershell-mode . lsp-mode)
|
2022-12-09 10:33:38 -09:00
|
|
|
|
(lsp-mode . lsp-enable-which-key-integration)
|
|
|
|
|
(lsp-completion-mode . corfu/lsp-mode-setup-completion))
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:commands lsp
|
2022-11-15 10:49:15 -09:00
|
|
|
|
:diminish lsp-lens-mode
|
2022-12-09 10:33:38 -09:00
|
|
|
|
:custom (lsp-completion-provider :none)
|
|
|
|
|
:init (defun corfu/lsp-mode-setup-completion ()
|
|
|
|
|
(setf (alist-get 'styles (alist-get 'lsp-capf completion-category-defaults))
|
|
|
|
|
'(flex))))
|
2023-03-10 18:39:39 -09:00
|
|
|
|
;; Tree-sitter (disabled because broken?)
|
|
|
|
|
;; (use-package treesit-auto
|
|
|
|
|
;; :elpaca (treesit-auto
|
|
|
|
|
;; :host github
|
|
|
|
|
;; :repo "renzmann/treesit-auto")
|
|
|
|
|
;; :custom (treesit-auto-install 'prompt)
|
|
|
|
|
;; ;; :init (add-to-list 'treesit-auto-fallback-alist '(bash-ts-mode . sh-mode))
|
|
|
|
|
;; )
|
2022-06-19 14:13:36 -08:00
|
|
|
|
|
2022-08-08 06:37:40 -08:00
|
|
|
|
;; broken snippets I don't care about...
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package yasnippet
|
2022-08-11 06:27:27 -08:00
|
|
|
|
:diminish yas-minor-mode
|
2022-08-08 06:37:40 -08:00
|
|
|
|
:hook (prog-mode . yas-minor-mode))
|
2022-06-19 14:13:36 -08:00
|
|
|
|
|
|
|
|
|
;; Better help-pages. Genuinely pretty great.
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package helpful
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:general (general-define-key
|
2022-08-24 19:28:10 -08:00
|
|
|
|
[remap describe-key] 'helpful-key
|
|
|
|
|
[remap describe-variable] 'helpful-variable
|
|
|
|
|
[remap describe-function] 'helpful-callable)
|
2022-06-19 14:13:36 -08:00
|
|
|
|
(general-define-key
|
|
|
|
|
:keymaps 'help-map
|
|
|
|
|
"F" 'describe-face
|
|
|
|
|
"k" 'helpful-key)
|
|
|
|
|
(general-define-key
|
|
|
|
|
:keymaps 'emacs-lisp-mode-map
|
|
|
|
|
:states 'normal
|
2022-08-11 06:27:27 -08:00
|
|
|
|
"K" 'helpful-at-point)
|
|
|
|
|
:custom (elisp-refs-verbose nil))
|
2022-06-19 14:13:36 -08:00
|
|
|
|
|
|
|
|
|
;; Better lisp highlighting?
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package highlight-defined
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:hook (emacs-lisp-mode . highlight-defined-mode))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package relint)
|
|
|
|
|
(use-package elisp-autofmt
|
|
|
|
|
:elpaca (elisp-autofmt
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:host codeberg
|
|
|
|
|
:repo "ideasman42/emacs-elisp-autofmt"
|
|
|
|
|
:files ("*"))
|
2023-02-08 14:03:24 -09:00
|
|
|
|
:custom (elisp-autofmt-python-bin "/usr/bin/python3"))
|
2022-06-19 14:13:36 -08:00
|
|
|
|
|
|
|
|
|
;; Shell linting?
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package flymake
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:diminish
|
2022-12-09 10:34:51 -09:00
|
|
|
|
:custom
|
|
|
|
|
(flymake-note-bitmap '(right-arrow compilation-info))
|
|
|
|
|
(flymake-error-bitmap '(right-arrow compilation-info))
|
|
|
|
|
(flymake-warning-bitmap '(right-arrow compilation-info))
|
2022-11-15 10:49:41 -09:00
|
|
|
|
:hook (prog-mode . flymake-mode))
|
2022-06-19 14:13:36 -08:00
|
|
|
|
|
2022-11-27 14:50:21 -09:00
|
|
|
|
;; Emacs startup profiling -- may not work with chemacs2
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package esup
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:commands esup)
|
|
|
|
|
|
|
|
|
|
;; Blingy laggy minimap on the right
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package minimap
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:general (general-define-key
|
2022-08-24 19:28:10 -08:00
|
|
|
|
:states 'normal
|
|
|
|
|
:prefix-command 'mini-map-prefix
|
|
|
|
|
:prefix-map 'mini-map
|
|
|
|
|
:prefix "SPC m"
|
|
|
|
|
"m" 'minimap-mode
|
|
|
|
|
"k" 'minimap-kill)
|
2023-03-06 18:48:29 -09:00
|
|
|
|
:diminish
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:custom
|
|
|
|
|
(minimap-window-location 'right)
|
|
|
|
|
(minimap-update-delay 0)
|
|
|
|
|
:custom-face
|
|
|
|
|
(minimap-active-region-background
|
|
|
|
|
((t (:background "#303030" :extend t))))
|
|
|
|
|
(minimap-current-line-face
|
2022-07-21 08:15:38 -08:00
|
|
|
|
((nil (:background "#afafaf" :extend t)))))
|
2022-06-19 14:13:36 -08:00
|
|
|
|
|
|
|
|
|
;; epic drop-down completion
|
2023-02-23 12:50:19 -09:00
|
|
|
|
;; (use-package company
|
2022-07-16 18:03:19 -08:00
|
|
|
|
;; :diminish
|
|
|
|
|
;; :custom ;(company-require-match nil)
|
|
|
|
|
;; (company-tooltip-align-annotations t)
|
|
|
|
|
;; :hook (prog-mode . company-mode))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package corfu
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:elpaca (:files (:defaults "extensions/*.el"))
|
2022-12-13 16:36:48 -09:00
|
|
|
|
;; :if (display-graphic-p) ; breaks in emacsclient
|
2022-07-16 18:03:19 -08:00
|
|
|
|
:custom
|
2022-12-09 10:39:14 -09:00
|
|
|
|
(corfu-cycle t) ;; Enable cycling for `corfu-next/previous'
|
|
|
|
|
(corfu-auto t) ;; Enable auto completion
|
|
|
|
|
(corfu-auto-delay 1.5)
|
|
|
|
|
(corfu-auto-prefix 2)
|
|
|
|
|
(corfu-separator ?-) ;; Orderless field separator
|
|
|
|
|
(corfu-quit-at-boundary 'separator) ;; Never quit at completion boundary
|
|
|
|
|
(corfu-quit-no-match 'separator) ;; Never quit, even if there is no match
|
|
|
|
|
(corfu-preview-current nil) ;; Disable current candidate preview
|
|
|
|
|
(corfu-preselect-first nil) ;; Disable candidate preselection
|
|
|
|
|
(corfu-on-exact-match nil) ;; Configure handling of exact matches
|
|
|
|
|
(corfu-scroll-margin 5) ;; Use scroll margin
|
|
|
|
|
(completion-cycle-threshold 0)
|
2022-07-16 18:03:19 -08:00
|
|
|
|
(tab-always-indent 'complete)
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(tooltip-delay 0.01)
|
|
|
|
|
(use-system-tooltips nil)
|
|
|
|
|
(tooltip-hide-delay 60)
|
|
|
|
|
:custom-face
|
|
|
|
|
(tooltip
|
|
|
|
|
((t (:inherit 'corfu-default))))
|
2022-07-16 18:03:19 -08:00
|
|
|
|
:init (global-corfu-mode)
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(tooltip-mode)
|
2022-12-09 10:39:14 -09:00
|
|
|
|
:config
|
|
|
|
|
(advice-add 'pcomplete-completions-at-point :around #'cape-wrap-silent)
|
|
|
|
|
(advice-add 'pcomplete-completions-at-point :around #'cape-wrap-purify)
|
2022-07-16 18:03:19 -08:00
|
|
|
|
:general
|
|
|
|
|
(general-define-key
|
2022-12-09 10:39:14 -09:00
|
|
|
|
:states 'insert
|
|
|
|
|
:keymaps 'corfu-map
|
|
|
|
|
[tab] 'corfu-next
|
|
|
|
|
[backtab] 'corfu-previous
|
2022-07-16 18:03:19 -08:00
|
|
|
|
"RET" 'corfu-insert
|
2022-12-09 10:39:14 -09:00
|
|
|
|
"ESC" 'corfu-quit
|
|
|
|
|
"C-h" 'corfu-info-documentation
|
|
|
|
|
"C-f" 'corfu-info-location))
|
2022-12-09 10:40:49 -09:00
|
|
|
|
(elpaca nil
|
|
|
|
|
(use-package corfu-echo
|
2023-02-23 12:50:19 -09:00
|
|
|
|
:elpaca corfu
|
2022-12-09 10:40:49 -09:00
|
|
|
|
:custom (corfu-echo-delay t)
|
|
|
|
|
:after corfu
|
2023-03-08 08:00:36 -09:00
|
|
|
|
:config (corfu-echo-mode))
|
2022-12-09 10:40:49 -09:00
|
|
|
|
(use-package corfu-history
|
2023-02-23 12:50:19 -09:00
|
|
|
|
:elpaca corfu
|
2022-12-09 10:40:49 -09:00
|
|
|
|
:after corfu
|
|
|
|
|
:config (corfu-history-mode)))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package cape
|
2022-12-09 10:40:49 -09:00
|
|
|
|
:after corfu
|
|
|
|
|
:init
|
|
|
|
|
(add-to-list 'completion-at-point-functions #'cape-dabbrev)
|
|
|
|
|
(add-to-list 'completion-at-point-functions #'cape-file)
|
|
|
|
|
(add-to-list 'completion-at-point-functions #'cape-ispell))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package pcmpl-args
|
2022-12-09 10:40:49 -09:00
|
|
|
|
:after eshell)
|
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package popon
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:elpaca (:type git
|
|
|
|
|
:repo "https://codeberg.org/akib/emacs-popon")
|
2022-06-22 06:41:28 -08:00
|
|
|
|
:if (not (display-graphic-p)))
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package corfu-terminal
|
|
|
|
|
:elpaca (corfu-terminal
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:type git
|
|
|
|
|
:repo "https://codeberg.org/akib/emacs-corfu-terminal")
|
2022-06-22 06:41:28 -08:00
|
|
|
|
:after popon
|
2022-06-19 14:13:36 -08:00
|
|
|
|
:init (unless
|
2022-08-24 19:28:10 -08:00
|
|
|
|
(display-graphic-p)
|
|
|
|
|
(corfu-terminal-mode +1)))
|
2022-06-19 14:13:36 -08:00
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package magit
|
2022-11-15 21:03:37 -09:00
|
|
|
|
:commands (madots magit-status magit)
|
|
|
|
|
:hook (magit-mode . turn-off-line-numbers)
|
2023-01-03 11:52:45 -09:00
|
|
|
|
:custom (vc-follow-symlinks t)
|
2023-01-12 16:27:33 -09:00
|
|
|
|
(transient-history-file
|
|
|
|
|
(expand-file-name "transient/history.el" backup-directory))
|
2022-11-15 21:03:37 -09:00
|
|
|
|
:config
|
|
|
|
|
(defun madots--magit-buffers-p ()
|
|
|
|
|
(not (not ; converts all non-nil values to t
|
|
|
|
|
(remove nil ; clean useless elements
|
|
|
|
|
(mapcar (lambda (buffer)
|
|
|
|
|
(if (string-match-p "magit: " (buffer-name buffer))
|
|
|
|
|
buffer))
|
|
|
|
|
(buffer-list))))))
|
2023-01-12 19:34:48 -09:00
|
|
|
|
(defun madots--kill-all-magit-buffers ()
|
|
|
|
|
(mapcar (lambda (buffer)
|
|
|
|
|
(if (string-match-p "^magit" (buffer-name buffer))
|
|
|
|
|
(kill-buffer buffer)))
|
|
|
|
|
(buffer-list)))
|
2022-11-15 21:03:37 -09:00
|
|
|
|
(defun madots--cleanup ()
|
|
|
|
|
"Remove modifications made for `madots' once all magit buffers are killed."
|
|
|
|
|
(if (not (madots--magit-buffers-p))
|
|
|
|
|
(progn
|
|
|
|
|
(setq magit-git-executable madots--old-magit-exe)
|
2023-01-03 12:01:43 -09:00
|
|
|
|
(setq magit-bury-buffer-function madots--old-magit-bury-buf-func)
|
2022-11-15 21:03:37 -09:00
|
|
|
|
(cancel-function-timers #'madots--cleanup))))
|
|
|
|
|
(defun madots (&optional exe)
|
|
|
|
|
"Magit but with custom EXE, default \"dots\"."
|
|
|
|
|
(interactive)
|
|
|
|
|
(require 'magit)
|
|
|
|
|
(setq madots--old-magit-exe magit-git-executable)
|
|
|
|
|
(setq magit-git-executable (or exe "dots"))
|
2023-01-03 12:01:43 -09:00
|
|
|
|
(setq madots--old-magit-bury-buf-func magit-bury-buffer-function)
|
|
|
|
|
(setq magit-bury-buffer-function #'kill-buffer-and-window)
|
2022-11-15 21:03:37 -09:00
|
|
|
|
(magit-status)
|
|
|
|
|
(run-with-timer 5 3 #'madots--cleanup)))
|
2023-03-08 08:01:03 -09:00
|
|
|
|
(use-package magit-todos
|
|
|
|
|
:after magit
|
|
|
|
|
:init (magit-todos-mode))
|
2023-03-08 09:50:37 -09:00
|
|
|
|
(use-package blamer
|
|
|
|
|
:elpaca (:host github :repo "artawower/blamer.el")
|
|
|
|
|
:custom
|
|
|
|
|
(blamer-view 'overlay)
|
|
|
|
|
(blamer-idle-time 10)
|
|
|
|
|
(blamer-min-offset 70)
|
|
|
|
|
(blamer-prettify-time-p t)
|
|
|
|
|
(blamer-show-avatar-p t)
|
|
|
|
|
:custom-face
|
|
|
|
|
(blamer-face ((t :foreground "#7a88cf"
|
2023-03-11 09:28:49 -09:00
|
|
|
|
:height 140
|
|
|
|
|
:italic t)))
|
2023-03-08 09:50:37 -09:00
|
|
|
|
:commands blamer-show-posframe-commit-info)
|
2023-03-08 18:22:42 -09:00
|
|
|
|
(use-package magit-stats
|
2023-03-09 09:39:36 -09:00
|
|
|
|
:elpaca (:host github :repo "LionyxML/magit-stats")
|
2023-03-08 18:22:42 -09:00
|
|
|
|
:after magit
|
2023-03-09 09:39:36 -09:00
|
|
|
|
:commands magit-stats)
|
2022-06-19 19:32:07 -08:00
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package hyperbole
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:elpaca (:files ("*.el"
|
|
|
|
|
("kotl" "kotl/*.el")
|
|
|
|
|
"man/*.info" "man/*.texi")
|
|
|
|
|
:host github :repo "rswgnu/hyperbole")
|
2022-06-21 16:50:50 -08:00
|
|
|
|
:diminish
|
2022-06-21 16:56:59 -08:00
|
|
|
|
:general (general-define-key
|
2022-08-24 19:28:10 -08:00
|
|
|
|
:states 'normal
|
|
|
|
|
"RET" 'hkey-either))
|
2022-06-21 16:50:50 -08:00
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package dconf-mode
|
|
|
|
|
:elpaca (dconf-mode
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:type git
|
|
|
|
|
:repo "https://git.mitchmarq42.xyz/mitch/dconf-mode.el"))
|
2022-12-14 22:33:02 -09:00
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package info-variable-pitch
|
|
|
|
|
:elpaca (info-variable-pitch
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:host github
|
|
|
|
|
:repo "kisaragi-hiu/info-variable-pitch")
|
2022-06-27 18:58:48 -08:00
|
|
|
|
:config
|
|
|
|
|
(add-hook 'Info-mode-hook #'info-variable-pitch-mode))
|
|
|
|
|
|
2023-01-15 20:00:48 -09:00
|
|
|
|
;; (elpaca nil
|
|
|
|
|
;; (use-package exwm
|
2023-02-23 12:50:19 -09:00
|
|
|
|
;; :elpaca nil
|
2023-01-15 20:00:48 -09:00
|
|
|
|
;; :if (package-installed-p 'exwm)
|
|
|
|
|
;; :init
|
|
|
|
|
;; (require 'exwm-config)
|
|
|
|
|
;; (exwm-config-example)))
|
2022-11-15 10:49:15 -09:00
|
|
|
|
|
2023-01-12 16:30:47 -09:00
|
|
|
|
(elpaca nil
|
|
|
|
|
(use-package xwidget
|
2023-02-23 12:50:19 -09:00
|
|
|
|
:elpaca nil
|
2023-01-12 16:30:47 -09:00
|
|
|
|
:commands xwidget-webkit-browse-url
|
|
|
|
|
:config
|
|
|
|
|
(defun mitch/webkit-isearch ()
|
|
|
|
|
(interactive)
|
|
|
|
|
(xwidget-webkit-search
|
|
|
|
|
(setq isearch-string
|
|
|
|
|
(read-from-minibuffer "Find in page: "))
|
|
|
|
|
(car xwidget-list)
|
|
|
|
|
'insensitive nil t))
|
|
|
|
|
(defun mitch/webkit-isearch-next ()
|
|
|
|
|
(interactive)
|
|
|
|
|
(xwidget-webkit-search isearch-string
|
|
|
|
|
(car xwidget-list) 'insensitive nil t))
|
|
|
|
|
(defun mitch/webkit-isearch-prev ()
|
|
|
|
|
(interactive)
|
|
|
|
|
(xwidget-webkit-search isearch-string
|
|
|
|
|
(car xwidget-list) 'insensitive t t))
|
|
|
|
|
;; (posframe-show ) ;; need posframe package
|
|
|
|
|
:general (general-define-key
|
|
|
|
|
:states 'normal
|
|
|
|
|
:keymaps 'xwidget-webkit-mode-map
|
|
|
|
|
"/" 'mitch/webkit-isearch
|
|
|
|
|
"n" 'mitch/webkit-isearch-next
|
|
|
|
|
"N" 'mitch/webkit-isearch-prev)))
|
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package ani-el
|
|
|
|
|
:elpaca (ani-el
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:repo "https://git.mitchmarq42.xyz/mitch/ani-el"
|
|
|
|
|
:files ("ani-el.el" "lib")))
|
2022-07-05 20:56:48 -08:00
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package slime
|
2022-07-11 17:59:39 -08:00
|
|
|
|
:if (file-exists-p (expand-file-name "~/quicklisp/slime-helper.el"))
|
2022-12-13 16:38:17 -09:00
|
|
|
|
:commands (slime slime-connect)
|
2022-07-11 17:59:39 -08:00
|
|
|
|
:custom (inferior-lisp-program "sbcl")
|
2022-12-13 16:38:17 -09:00
|
|
|
|
:config (load (expand-file-name "~/quicklisp/slime-helper.el")))
|
2022-07-11 17:59:39 -08:00
|
|
|
|
|
2022-07-22 16:24:56 -08:00
|
|
|
|
;; built in spell checker, for losers
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package flyspell
|
|
|
|
|
:elpaca nil
|
2022-11-01 14:19:14 -08:00
|
|
|
|
:diminish
|
2022-07-22 16:24:56 -08:00
|
|
|
|
:custom
|
|
|
|
|
(flyspell-auto-correct-word t)
|
|
|
|
|
:hook
|
|
|
|
|
(org-mode . flyspell-mode))
|
|
|
|
|
|
2022-08-24 19:28:10 -08:00
|
|
|
|
;; Java never looked so useful...
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package clojure-mode
|
2022-12-09 10:40:49 -09:00
|
|
|
|
:mode "\\.cljs\\'")
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package inf-clojure
|
2022-12-09 10:40:49 -09:00
|
|
|
|
:after clojure-mode)
|
2023-03-07 08:26:31 -09:00
|
|
|
|
;; or an okay language
|
|
|
|
|
(use-package cider
|
|
|
|
|
:after clojure-mode)
|
2022-08-24 19:28:10 -08:00
|
|
|
|
|
2022-09-04 11:09:04 -08:00
|
|
|
|
;; unique buffer names
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package uniquify
|
|
|
|
|
:elpaca nil
|
2022-10-09 11:53:34 -08:00
|
|
|
|
:custom (uniquify-buffer-name-style 'forward))
|
2022-09-04 11:09:04 -08:00
|
|
|
|
|
2022-09-29 06:18:54 -08:00
|
|
|
|
;; cache file cleanup
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package kkc
|
|
|
|
|
:elpaca nil
|
2022-09-16 17:46:49 -08:00
|
|
|
|
:custom (kkc-init-file-name (expand-file-name "kkcrc" backup-directory)))
|
|
|
|
|
|
2022-11-06 19:42:23 -09:00
|
|
|
|
;; see https://www.reddit.com/r/emacs/comments/xyo2fo/orgmode_vterm_tmux/
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package ob-tmux
|
2022-11-15 10:47:09 -09:00
|
|
|
|
:after (org dash)
|
|
|
|
|
:config
|
|
|
|
|
(setq org-src-lang-modes (-replace
|
|
|
|
|
'("tmux" . sh)
|
|
|
|
|
'("tmux" . powershell)
|
|
|
|
|
org-src-lang-modes))
|
2022-11-06 19:42:23 -09:00
|
|
|
|
:custom
|
|
|
|
|
(org-babel-default-header-args:tmux
|
|
|
|
|
'((:results . "display")
|
|
|
|
|
(:session . "default")
|
|
|
|
|
(:socket . nil)))
|
|
|
|
|
(org-babel-tmux-session-prefix "ob-")
|
|
|
|
|
(org-babel-tmux-terminal "/home/mitch/.local/bin/emacs-term-shim.sh")
|
2022-11-15 10:47:09 -09:00
|
|
|
|
(org-babel-tmux-terminal-opts))
|
2022-11-06 19:42:23 -09:00
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package dwim-shell-command
|
|
|
|
|
:elpaca (dwim-shell-command
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:files (:defaults "dwim-shell-commands.el"))
|
2022-11-15 10:50:22 -09:00
|
|
|
|
:config (require 'dwim-shell-commands)
|
|
|
|
|
:commands dwim-shell-commands-kill-process)
|
2022-11-15 10:50:40 -09:00
|
|
|
|
|
2023-02-08 13:57:57 -09:00
|
|
|
|
;; https://laurencewarne.github.io/emacs/programming/2022/12/26/exploring-proced.html
|
|
|
|
|
(elpaca nil
|
|
|
|
|
(use-package proced
|
2023-02-23 12:50:19 -09:00
|
|
|
|
:elpaca nil
|
2023-02-08 13:57:57 -09:00
|
|
|
|
:commands proced
|
|
|
|
|
:custom
|
|
|
|
|
(proced-auto-update-flag t)
|
|
|
|
|
(proced-goal-attribute nil)
|
|
|
|
|
(proced-show-remote-processes t)
|
|
|
|
|
(proced-enable-color-flag t)
|
|
|
|
|
(proced-format 'custom)
|
|
|
|
|
:config
|
|
|
|
|
(add-to-list
|
|
|
|
|
'proced-format-alist
|
|
|
|
|
'(custom user pid ppid sess tree pcpu pmem rss start time state
|
|
|
|
|
(args comm)))))
|
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package youtube-sub-extractor
|
|
|
|
|
:elpaca (youtube-sub-extractor
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:host github
|
|
|
|
|
:repo "agzam/youtube-sub-extractor.el")
|
2022-11-15 15:17:22 -09:00
|
|
|
|
:custom (youtube-sub-extractor-timestamps 'left-margin)
|
|
|
|
|
:commands youtube-sub-extractor-extract-subs)
|
|
|
|
|
|
2022-11-27 14:50:21 -09:00
|
|
|
|
;; Cheat sheet
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package cheat-sh
|
|
|
|
|
:elpaca (cheat-sh :host github :repo "davep/cheat-sh.el")
|
2022-11-15 15:17:56 -09:00
|
|
|
|
:commands cheat-sh)
|
2022-11-15 10:50:40 -09:00
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package pcre2el
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:elpaca (:host github
|
|
|
|
|
:repo "joddie/pcre2el")
|
2023-01-03 11:52:16 -09:00
|
|
|
|
:config
|
|
|
|
|
(defmacro prx (&rest expressions)
|
|
|
|
|
"Convert the rx-compatible regular EXPRESSIONS to PCRE.
|
2023-01-04 11:56:13 -09:00
|
|
|
|
Most shell applications accept Perl Compatible Regular Expressions.
|
|
|
|
|
|
|
|
|
|
Taken from https://howardism.org/Technical/Emacs/eshell-why.html"
|
|
|
|
|
`(rx-let ((integer (1+ digit))
|
|
|
|
|
(float (seq integer "." integer))
|
|
|
|
|
(b256 (seq (optional (or "1" "2"))
|
2023-01-04 11:58:13 -09:00
|
|
|
|
(regexp "[0-9]\\{1,2\\}")))
|
2023-01-04 11:56:13 -09:00
|
|
|
|
(ipaddr (seq b256 "." b256 "." b256 "." b256))
|
|
|
|
|
(time (seq
|
|
|
|
|
digit (optional digit)
|
|
|
|
|
":" (= 2 digit) (optional ":" (= 2 digit))))
|
|
|
|
|
(email (seq (1+ (regexp "[^,< ]")) "@"
|
|
|
|
|
(1+ (seq (1+ (any alnum "-"))) ".") (1+ alnum)))
|
|
|
|
|
(date (seq (= 2 digit) (or "/" "-")
|
|
|
|
|
(= 2 digit) (or "/" "-") (= 4 digit)))
|
|
|
|
|
(ymd (seq (= 4 digit) (or "/" "-")
|
|
|
|
|
(= 2 digit) (or "/" "-") (= 2 digit)))
|
|
|
|
|
(uuid (seq (= 8 hex) "-" (= 3 (seq (= 4 hex) "-")) (= 12 hex)))
|
|
|
|
|
(guid (seq uuid)))
|
|
|
|
|
(rxt-elisp-to-pcre (rx ,@expressions)))))
|
2023-01-03 11:52:16 -09:00
|
|
|
|
|
2023-03-11 09:29:05 -09:00
|
|
|
|
;; (use-package org-modern
|
|
|
|
|
;; :after org
|
|
|
|
|
;; :custom
|
|
|
|
|
;; (org-modern-tag nil)
|
|
|
|
|
;; (org-modern-todo nil)
|
|
|
|
|
;; (org-modern-block-name nil)
|
|
|
|
|
;; (org-modern-table nil)
|
|
|
|
|
;; (org-modern-hide-stars nil)
|
|
|
|
|
;; (org-modern-star nil)
|
|
|
|
|
;; ;; (org-modern-block-fringe 16)
|
|
|
|
|
;; :hook (org-mode . org-modern-mode)
|
|
|
|
|
;; :config
|
|
|
|
|
;; )
|
2023-01-13 15:57:09 -09:00
|
|
|
|
|
2023-03-11 09:18:36 -09:00
|
|
|
|
;; svg-tags; disabled because reasons
|
|
|
|
|
;; (use-package svg-tag-mode
|
|
|
|
|
;; :elpaca (svg-tag-mode
|
|
|
|
|
;; :host github
|
|
|
|
|
;; :repo "rougier/svg-tag-mode")
|
|
|
|
|
;; ;; :after org-modern
|
|
|
|
|
;; :hook (org-modern-mode . svg-tag-mode)
|
|
|
|
|
;; :custom (svg-tag-tags
|
|
|
|
|
;; `((,(rx blank (group (= 4 upper)) blank) .
|
|
|
|
|
;; ((lambda (tag)
|
|
|
|
|
;; (svg-tag-make tag
|
|
|
|
|
;; :inverse t
|
|
|
|
|
;; :face (intern
|
|
|
|
|
;; (format "org-%s" (downcase tag)))))))
|
|
|
|
|
;; (,(rx (group "#+" (or "begin" "end") "_src")) .
|
|
|
|
|
;; ((lambda (tag)
|
|
|
|
|
;; (let* ((begend (string-trim tag "#\\+" "_src"))
|
|
|
|
|
;; (upcased (upcase begend)))
|
|
|
|
|
;; (svg-tag-make upcased
|
|
|
|
|
;; :face 'org-block-begin-line)))))))
|
|
|
|
|
;; )
|
2023-01-12 19:44:52 -09:00
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package haskell-mode)
|
|
|
|
|
(use-package yuck-mode)
|
2023-01-21 22:07:15 -09:00
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
(use-package klondike
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:elpaca (:host codeberg
|
|
|
|
|
:repo "WammKD/Emacs-Klondike")
|
2023-02-08 14:02:30 -09:00
|
|
|
|
:commands klondike)
|
|
|
|
|
|
2023-02-23 12:50:19 -09:00
|
|
|
|
;; disabled because error and useless
|
|
|
|
|
;; (use-package aggressive-indent
|
|
|
|
|
;; :after paredit
|
|
|
|
|
;; :commands aggressive-indent-mode
|
|
|
|
|
;; :hook (emacs-lisp-mode . aggresssive-indent-mode))
|
|
|
|
|
|
|
|
|
|
;; disabled because it breaks things and I don't care
|
|
|
|
|
(use-package perspective
|
|
|
|
|
:init (persp-mode)
|
|
|
|
|
:custom
|
|
|
|
|
(persp-suppress-no-prefix-key-warning t)
|
|
|
|
|
(persp-show-modestring nil)
|
|
|
|
|
;; :config
|
|
|
|
|
;; (consult-customize consult--source-buffer :hidden t :default nil)
|
|
|
|
|
;; (add-to-list 'consult-buffer-sources persp-consult-source)
|
|
|
|
|
)
|
|
|
|
|
(use-package perspective-tabs
|
|
|
|
|
:elpaca (perspective-tabs
|
2023-03-04 16:49:01 -09:00
|
|
|
|
:host sourcehut
|
|
|
|
|
:repo "woozong/perspective-tabs")
|
2023-02-23 12:50:19 -09:00
|
|
|
|
:after perspective
|
|
|
|
|
:init (perspective-tabs-mode +1))
|
|
|
|
|
|
2023-03-07 08:27:14 -09:00
|
|
|
|
(use-package empv
|
|
|
|
|
:after embark
|
|
|
|
|
:custom
|
|
|
|
|
(empv-invidious-instance "https://invidious.sethforprivacy.com/api/v1")
|
|
|
|
|
:config (empv-embark-initialize-extra-actions)
|
|
|
|
|
(add-to-list 'empv-mpv-args "--ytdl-format=best"))
|
|
|
|
|
|
2023-03-08 09:24:35 -09:00
|
|
|
|
(use-package fretboard
|
|
|
|
|
:elpaca (:host github :repo "vifon/fretboard.el")
|
|
|
|
|
:defer t)
|
|
|
|
|
|
2022-06-19 14:13:36 -08:00
|
|
|
|
(provide 'mitch-packages)
|
|
|
|
|
;;; mitch-packages.el ends here
|